Computer Science, asked by archisman2001, 1 year ago

9. Predict the output
Odd = (1,3,5]
print( (Odd +[2, 4, 6])[4] )
print( (Odd +[12, 14, 16])[4] - (Odd +[2, 4, 6])
10. Predict the output
a, b, c = [1,27. 11. 21. 11.21​

Answers

Answered by resmidevi
9

Answer:

4

10

Explanation:

Here

print( (Odd +[2, 4, 6])[4] )

means element in the 4th index of the list      [1,3,5,2,4,6]  

                                                                      0 1 2 3 4      ie 4

print( (Odd +[12, 14, 16])[4] - (Odd +[2, 4, 6] )[4] ) means

4th index of [1,3,5,12,14,16] ie 14      

                    0 1 2 3 4

4th index of [1,3,5,2,4,6]  ie 4

                   0 1 2 3 4

14-4=10

Similar questions