Python Stack Quiz: Question 5

Last Updated :
Discuss
Comments

Which of the following is the correct way to implement a stack in Python?



stack = {}

stack = set()

stack = ()

stack = []

Share your thoughts in the comments