Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. newaccountchoice, newaccountchoice1, newaccountusername, d, e, f, g = "", 0, 0, 0, 0, 0, 0
  2. users = "users.dat"
  3. while newaccountchoice1 == 0:
  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,"w")
  13.         FILE.writelines(newaccountusername + " " + newaccountpassword)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement