Advertisement
here2share

# string_enumerate.py -- 2,4,6,8 how can we enumerate?

May 29th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # string_enumerate.py -- 2,4,6,8 how can we enumerate?
  2.  
  3. for a, b in enumerate(['aaa', 'bbb', 'ccc', 'ddd', 'eee']):
  4.     a=str(a).zfill(4)
  5.     print a,b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement