CBSE Class 12 Computer Science Question 14 of 63

Data Structures in Python — Question 7

Back to all questions
7
Question

Question 7

Consider the following operations done on Stack:

push(5)
push(8)
pop()
push(2)
push(5)
pop()
pop()
pop()
push(1)
pop()

The output of the above snippet is [], empty list.

Answer