Examveda

What is the output of the following code:
my_list = [1, 2, 3, 4, 5]
print(my_list[1:4])

A. [2, 3, 4]

B. [1, 2, 3]

C. [1, 2, 3, 4]

D. [2, 3]

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python