SHARE
TWEET

UserName_UserPassword

a guest Aug 12th, 2017 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while True:
  2.     print('What is your e-mail address?')
  3.     UserName = input()
  4.     username = UserName
  5.     if username == 'johndoe@email.com':
  6.        print('Okay, now we need your password?')    
  7.    
  8.        UserPassword = input()
  9.        password = UserPassword
  10.        if password == 'password123':
  11.             print('Access granted!')
  12.             break
  13.        else:
  14.            print('Authorization not granted. Invalid credentials.')
  15.        while password != 'password123':
  16.            print('Re-enter your password')
  17.            UserPassword = input()
  18.            password = UserPassword
  19.            if password == 'password123':
  20.                print('Access granted!')
  21.        break
  22.     else:
  23.         print('Wrong e-mail address. Please re-enter.')
RAW Paste Data
Top