Stack in Python

February 24, 2019
s = []
s.append(1)
s.append(2)
s.append(3)
s.pop() # 3
s.pop() # 2
s.pop() # 1
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.