Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This program is a basic login system experiment
- print ('Hello, Enter your name')
- username = input()
- if username != ('Alice'):
- print ('incorrect name')
- while username != ('Alice'):
- print ('Try again')
- if username == 'Alice':
- print ('Name Accepted, Enter password')
- password = input()
- if password == 'Swordfish':
- print ('password accepted, welcome')
- if password != 'Swordfish':
- print ('incorrect password')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement