Advertisement
here2share

# enumerate.py

Apr 7th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. # enumerate.py
  2.  
  3. L = ['a','b','c','d','e','f']
  4. for a,b in enumerate(L):
  5.     print a,b
  6. '''
  7. 0 a
  8. 1 b
  9. 2 c
  10. 3 d
  11. 4 e
  12. 5 f
  13. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement