Q. What is the output of the following code snippet?
Code:
mylist = [1,2,3,4,5] print(mylist[2:4])
β
Correct Answer: (B)
[3,4]
mylist = [1,2,3,4,5] print(mylist[2:4])
You must be Logged in to update hint/solution