Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # enumerate.py
- L = ['a','b','c','d','e','f']
- for a,b in enumerate(L):
- print a,b
- '''
- 0 a
- 1 b
- 2 c
- 3 d
- 4 e
- 5 f
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement