Lextree
Simply the best software for managing legal entities and documents.
The Berkman Letter
Practical analysis and commentary for business, law, and more.
so i have this error in line 30 everything is not defined 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()