Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os.path
- Check = os.path.isfile("H:PASS.txt")
- if Check == False:
- Password = input("What do you want your password to be ?")
- savefile = open("H:PASS.txt","w")
- savefile.write(Password)
- savefile.close()
- print("Your Password had now been set")
- quit()
- Pass = open("H:PASS.txt","r")
- password = Pass.read()
- Pass_check = input("Whats your password ?")
- if Pass_check != password:
- print("You Put in the wrong Password!")
- quit()
- Var1 = input("Do you want to print current list or Make a new one ? Print/Make New")
- if Var1 == "Make New":
- Monday = input("What do you want for Monday ?")
- Tuesday = input("What do you want for Tuesday ?")
- Wednesday = input("What do you want for Wednesday ?")
- Thurday = input("What do you want for Thursday ?")
- Friday = input("What do you want for Friday ?")
- savefile = open("H:Days.txt","w")
- savefile.write(Monday + "n")
- savefile.write(Tuesday + "n")
- savefile.write(Wednesday + "n")
- savefile.write(Thurday + "n")
- savefile.write(Friday + "n")
- savefile.close()
- else:
- R = open("H:Days.txt","r")
- R = Pass.read()
- print(R)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement