Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=[0,2,4,6,8,10]
- for i in enumerate(x):
- x.pop(0)
- print(x)
- [2,4,6,8,10]
- [4,6,8,10]
- [6,8,10]
- [8,10]
- [10]
- []
- [2,4,6,8,10]
- [4,6,8,10]
- [6,8,10]
- [8,10]
- [10]
- []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement