Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def post_codes(first,last):
- codes=[]
- for i in range(int(first.replace("-", ""))+1,int(last.replace("-", ""))):
- codes.append(str(i//10000)+str((i%10000)//1000)+"-"+str((i%1000)//100)+str((i%100)//10)+str(i%10))
- return codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement