Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat = True
- maindict ={}
- while(repeat):
- user_count=1
- choice=int(input('Slect Option: \n1. Login \n2. Register \nChoice:'))
- if choice == 1:
- input_user=input('Enter Username: ')
- input_pass=input('Enter Password: ')
- if maindict[user_count]==input_pass and input_user:
- print('Success!')
- else:
- print ('Invalid Username or Password.')
- elif choice ==2:
- username=input('Input Your Username: ')
- password=input ('Input your Password: ')
- maindict[user_count]=[password]
- print('username and password saved. ')
- user_count=user_count+1
- else:
- print('Invalid Option')
- again=input('Login and Add Account? Y or N: ')
- if again == 'Y' or 'y':
- repeat=True
- elif again == 'N':
- break
- else:
- print('Invalid Option')
- print('Program will be Terminated')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement