one of the following 10 statements generates an error. Which one?
x = [1,"abcd",2,"efgh",[3,4]] # Statement 1
y = x[0:50] # Statement 2
z = y # Statement 3
w = x # Statement 4
x[1] = x[1] + 'd' # Statement 5
x[1][1] = 'y' # Statement 6
y[2] = 4 # Statement 7
z[0] = 0 # Statement 8
w[4][0] = 1000 # Statement 9
a = (x[4][1] == 4) # Statement 10
nitish8089:
topic...
Answers
Answered by
5
Statement 1 makes error if the language is java or any language that does not support multiple datss in an array
Answered by
3
It is given that from the given ten statements, one generates an error. Statement 6 from the 10 statement has an error.
In the situation of options, where we talk about options that generate an error when the statements are used as codes in Python, the statement 6 will generate an error for sure.
Similar questions
Computer Science,
7 months ago
English,
7 months ago
Math,
7 months ago
Math,
1 year ago
History,
1 year ago