Consider the following python code, what is the deletion order elements from stack?
stack = []
stack.append('1')
stack.append('2')
​stack.pop()
stack.append('3')
stack.append('4')
stack.pop()
stack.pop()
​stack.pop()

1
2, 4, 3, 1
2
1, 2, 3, 4
3
4, 3, 2, 1
4
1, 3, 4, 2

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation