Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #working code taking both values at the same time then checking
- print ('Welcome to your program! We need to check some things to make sure it\'s you.')
- print ('What is your username?')
- username = input()
- print ('What is your password?')
- password = input()
- while username != 'emilymercurio':
- username = input('Wrong username, try again: ')
- while password != '123':
- password = input('Wrong password, try again: ')
- if username == 'emilymercurio' and password == '123':
- print ('Acccess Granted')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement