Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # different way to write code, neater?
- print ('Welcome to your program! We need to check some things to make sure it\'s you.')
- # username input and check
- while True:
- print ('What is your username?')
- username = input()
- if username == 'emilymercurio':
- break
- else:
- print ('Incorrect. Try again.')
- # password input and check
- while True:
- print ('What is your password?')
- password = input()
- if password == '123':
- break
- else:
- print ('Incorrect, try again.')
- print ('Access Granted!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement