Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.03 KB | None | 0 0
  1. newaccountchoice, newaccountchoice1, newaccountusername, loginusername, loginpassword, f, g = "", 1, 0, 0, 0, 0, 0
  2. users = "users.dat"
  3. while newaccountchoice1 == 1:
  4.     newaccountchoice = raw_input("would you like to create a new account?")
  5.     if newaccountchoice == "yes":
  6.         newaccountchoice1 = 1
  7.     if newaccountchoice == "no":
  8.         newaccountchoice1 = 0
  9.     if newaccountchoice1 == 1:
  10.         newaccountusername = raw_input("What do you want your username to be?")
  11.         newaccountpassword = raw_input("What do you want your password to be?")
  12.         FILE = open("/users/" + newaccountusername + "/" + "password","w")
  13.         FILE.writelines(newaccountpassword + "\n")
  14.         FILE.close()
  15.     if newaccountchoice1 == 0:
  16.         loginusername = raw_input("What is your username?")
  17.         loginpassword = raw_input("What is your password?")
  18.         #readusername = open("users.dat","r")
  19.         #readusers.readline(")
  20.         #print readusers
  21.         #pause = ""
  22.         #pause = raw_input("press enter to continue...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement