Consider list A given below and write the output of the statements that follow: 2
A=[3,6,7,8,10,12,23,33,16,6,2,1]
(a) print(a[3:])
(b) print(a[-3::])
(c) print(a[3::-2])
(d) print(len(a))
Answers
Answered by
0
Output:
a. [8, 10, 12, 23, 33, 16, 6, 2, 1]
b. [6, 2, 1]
c. [8, 6]
d. 12
Similar questions