Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> stack = [3, 4, 5]
- >>> stack.append(6)
- >>> stack.append(7)
- >>> stack
- [3, 4, 5, 6, 7]
- >>> stack.pop()
- 7
- >>> stack
- [3, 4, 5, 6]
- >>> stack.pop()
- 6
- >>> stack.pop()
- 5
- >>> stack
- [3, 4]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement