Page 1 of 1

Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?

Posted: Wed Jul 13, 2022 7:44 pm
by answerhappygod
a) print(list1[2:])
b) print(list1[:2])
c) print(list1[:-2])
d) all of the mentioned