Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stack = [0,1,2,3,4,5,6,7,8,9,10]
- print stack
- for i in range(0,len(stack)):
- if len(stack) > 2:
- stack.pop()
- stack.pop()
- stack.pop()
- print stack
- elif len(stack) >0:
- stack.pop()
- print stack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement