Vidyalelo
Python · Q75

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 75

Q75

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

A.
print(list1[2:])
B.
print(list1[:2])
C.
print(list1[:-2])
D.
all of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board