Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #this program generate all number of 5 digits from 00000 to 99999
- #made by comboita
- from tkinter import Tk
- from tkinter.filedialog import asksaveasfilename
- import time
- print("\nChoose where to save the file")
- time.sleep(1)
- path = asksaveasfilename(confirmoverwrite=False , initialdir = "/Desktop",title = "Select file",filetypes = (("txt files","*.txt"),("all files","*.*")))
- outfile = open(path, "w")
- for num in range(1000):
- outfile.write("%s:%s\n"%(str(num).zfill(3),str(num).zfill(3)) )
- print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement