Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. import os.path
  2. Check = os.path.isfile("H:PASS.txt")
  3.  
  4. if Check == False:
  5. Password = input("What do you want your password to be ?")
  6. savefile = open("H:PASS.txt","w")
  7. savefile.write(Password)
  8. savefile.close()
  9. print("Your Password had now been set")
  10. quit()
  11.  
  12.  
  13. Pass = open("H:PASS.txt","r")
  14. password = Pass.read()
  15. Pass_check = input("Whats your password ?")
  16. if Pass_check != password:
  17. print("You Put in the wrong Password!")
  18. quit()
  19.  
  20.  
  21. Var1 = input("Do you want to print current list or Make a new one ? Print/Make New")
  22. if Var1 == "Make New":
  23. Monday = input("What do you want for Monday ?")
  24. Tuesday = input("What do you want for Tuesday ?")
  25. Wednesday = input("What do you want for Wednesday ?")
  26. Thurday = input("What do you want for Thursday ?")
  27. Friday = input("What do you want for Friday ?")
  28. savefile = open("H:Days.txt","w")
  29. savefile.write(Monday + "n")
  30. savefile.write(Tuesday + "n")
  31. savefile.write(Wednesday + "n")
  32. savefile.write(Thurday + "n")
  33. savefile.write(Friday + "n")
  34. savefile.close()
  35. else:
  36. R = open("H:Days.txt","r")
  37. R = Pass.read()
  38. print(R)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement