Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def post_codes(first,last):
  2. codes=[]
  3. for i in range(int(first.replace("-", ""))+1,int(last.replace("-", ""))):
  4. codes.append(str(i//10000)+str((i%10000)//1000)+"-"+str((i%1000)//100)+str((i%100)//10)+str(i%10))
  5. return codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement