a) print(list1[2:])
b) print(list1[:2])
c) print(list1[:-2])
d) all of the mentioned
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!