Question

What will be the output of the following code snippet that demonstrates stack usage? stack = [] stack.append(1) stack.append(2) stack.append(3) print(stack.pop()) print(stack.pop())

A 1, 2
B 3, 2
C 2, 3
D 1, 3
E 3, 1
Practice Next

Relevant for Exams:

Hey! Ask a query