Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newaccountchoice, newaccountchoice1, newaccountusername, loginusername, loginpassword, f, g = "", 1, 0, 0, 0, 0, 0
- users = "users.dat"
- while newaccountchoice1 == 1:
- newaccountchoice = raw_input("would you like to create a new account?")
- if newaccountchoice == "yes":
- newaccountchoice1 = 1
- if newaccountchoice == "no":
- newaccountchoice1 = 0
- if newaccountchoice1 == 1:
- newaccountusername = raw_input("What do you want your username to be?")
- newaccountpassword = raw_input("What do you want your password to be?")
- FILE = open("/users/" + newaccountusername + "/" + "password","w")
- FILE.writelines(newaccountpassword + "\n")
- FILE.close()
- if newaccountchoice1 == 0:
- loginusername = raw_input("What is your username?")
- loginpassword = raw_input("What is your password?")
- #readusername = open("users.dat","r")
- #readusers.readline(")
- #print readusers
- #pause = ""
- #pause = raw_input("press enter to continue...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement