watch full explained video on you tube
scroll to the bottom for link CLICK HERE
def login(): # function for logging in
email = input('email')
password = input('password')
for i in em:
if i == email:
for j in pa:
if j == password:
print('You are successfully logged in ')
break
else:
print('wrong id or password ')
def signup(): # function for signing up
email = input('Email')
password =input('password')
em.append(email)
print(em)
pa.append(password)
print(pa)
personal_details()
def personal_details(): # function to display to user
print('what do you want to do')
print('1.login', end=" ")
print('2.signup')
inp = int(input('Enter your choice here: '))
if inp == 1:
print('Login')
return login()
elif inp == 2:
print('Signup')
return signup()
else:
print('invalid input')
personal_details()
watch full explanation of this program here: click the link given below:
CLICK HERE
and do like share and subscribe
scroll to the bottom for link CLICK HERE
em = [] # empty list defined for email
pa = [] # empty list defined for password def login(): # function for logging in
email = input('email')
password = input('password')
for i in em:
if i == email:
for j in pa:
if j == password:
print('You are successfully logged in ')
break
else:
print('wrong id or password ')
def signup(): # function for signing up
email = input('Email')
password =input('password')
em.append(email)
print(em)
pa.append(password)
print(pa)
personal_details()
def personal_details(): # function to display to user
print('what do you want to do')
print('1.login', end=" ")
print('2.signup')
inp = int(input('Enter your choice here: '))
if inp == 1:
print('Login')
return login()
elif inp == 2:
print('Signup')
return signup()
else:
print('invalid input')
personal_details()
watch full explanation of this program here: click the link given below:
CLICK HERE
and do like share and subscribe
Comments
Post a Comment