Python Stack Quiz: Question 9

Last Updated :
Discuss
Comments

What will the following code output?

Python
stack = [10, 20, 30]
print(stack[-1])


20

30

10

Error

Share your thoughts in the comments