0% found this document useful (0 votes)
16 views

Code calc data

Uploaded by

haridascs108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Code calc data

Uploaded by

haridascs108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

print ('Hi Welcome to program Z')

print('Do you like to create an account (Y/N)')


a=input()
if a=='Y' or a=='y':
b=input('Enter username: ')
while len(b)==0 or b==' ':
print ('Field cannot be empty!')
b=input('Enter username: ')
c=input('Enter email id: ')
while len(c)==0 or c==' ':
print ('Field cannot be empty!')
c=input('Enter email id: ')
d=input('Enter phone no.: ')
while len(d)==0 or d==' ':
print ('Field cannot be empty!')
d=input('Enter phone no.: ')
e=input('Create a password: ')
while len(e)==0 or e==' ':
print ('Field cannot be empty!')
e=input('Create a password: ')
f=input('Retype the password: ')
while e!=f:
print ('Incorrect password!')
f=input('Try again: ')
else:
print ('Registration successful!')
print ()
print('Enter your username and password to login')
print ('Caution! Case sensitive!')
x=input('Enter username: ')
while x!=b:
print ('Incorrect username!')
x=input('Try again: ')
else:
y=input('Enter password: ')
while y!=e:
print ('Incorrect password!')
y=input('Try again: ')
else:
print('You logined successfully!')
a=input('Press enter to exit!')

else:
print('Get out off here!')
a=input('Press enter to exit!')
exit

You might also like