Advertisement
Guest User

Username and Password Code 2

a guest
Apr 30th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. #working code taking both values at the same time then checking
  2. print ('Welcome to your program! We need to check some things to make sure it\'s you.')
  3. print ('What is your username?')
  4. username = input()
  5. print ('What is your password?')
  6. password = input()
  7. while username != 'emilymercurio':
  8.     username = input('Wrong username, try again: ')
  9. while password != '123':
  10.     password = input('Wrong password, try again: ')
  11. if username == 'emilymercurio' and password == '123':
  12.     print ('Acccess Granted')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement