Advertisement
here2share

# b_zfill_aka_zero_padding.py

Feb 6th, 2020
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. # b_zfill_aka_zero_padding.py
  2.  
  3. for i in [1, 12, 123, 'aaa', 1234]:
  4.     print str(i).zfill(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement