'Everything is not defined in line 30 except Email

from future import with_statement import email

def login(): print ("You are now logged in")

def reg(Ussername, Password, Age, Real_name, Last_name, Email): file = open ("User_details","a") file.write("\n"+Ussername+","+Password+","+Age+","+Real_name+","+Last_name+","+Email) file.close

def Access(): if option1 == "login": input ("Ussername: ") input ("Password: ") input ("Age: ") input ("Real name: ") input ("Last name: ") input ("Email: ") login() else: print ("Enter all the info we will be asking you to register") input ("Ussername: ") input ("Password: ") input ("Age: ") input ("Real name: ") input ("Last name: ") input ("Email: ") reg(Ussername, Password, Age, Real_name, Last_name, email)

def begin(): global option1 print ("Hi my name is Steve would you like to register or login") option1 = input ("Login or Register: ") if option1 not in ("login", "register"): begin() begin() Access()



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source