0

One of the following 10 statements generates an error. Which one? (Your answer should be a number between 1 and 10.)

x = [[7,8],3,"hello",[6,8],"world",17] # Line 1 z = [x[0],x[3]] # Line 2 y = x[0:50] # Line 3 w = x # Line 4 w[0][1] = 7 # Line 5 a = z[0][1] + z[1][1] # Line 6 x[0] = "ping" # Line 7 y[2] = y[2][1] + y[4][2] # Line 8 y[0][1] = 7 # Line 9 w[0][1] = 7 #line 10

12th Feb 2018, 9:35 AM
darshan ks
darshan ks - avatar
3 odpowiedzi
+ 2
line 3
12th Feb 2018, 12:59 PM
Asmu deen
Asmu deen - avatar
0
I think its line 10
19th Feb 2018, 6:33 PM
darshan ks
darshan ks - avatar
- 1
Ty
12th Feb 2018, 4:39 PM
darshan ks
darshan ks - avatar