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