What will be the output of the following statements?
i). list1 = [12,32,65,26,80,10] list1.sort() print(list1) ii). list1 = [12,32,65,26,80,10] list1.remove(30) print(list1)
iii). list1 = [1,2,3,4,5,6,7,8,9,10] print(list1[::-2]) print(list1[:3] + list1[3:])
iv). list1 = [1,2,3,4,5] print(list1[len(list1) -1])
Answers
Answered by
0
Answer:
I = [10, 12, 26, 32, 65, 80]
II = [12, 32, 65, 26, 80, 10]
III = nothing, because there is not any print statement
IV = nothing, because there is not any print statement
Similar questions