Python Stack Quiz: Question 7

Last Updated :
Discuss
Comments

How do you check if a stack is empty in Python?

stack == []

len(stack) == 0


stack.empty()

stack.isEmpty()

Share your thoughts in the comments