Q. Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation? (Solved)
1. print(list1[0])
2. print(list1[:2])
3. print(list1[:-2])
4. all of the mentioned
- d. all of the mentioned
1. print(list1[0])
2. print(list1[:2])
3. print(list1[:-2])
4. all of the mentioned