Guest User

Untitled

a guest
Nov 27th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. usernameinput = input('Please enter your username: ')
  2.  
  3. passwordinput = input('Please enter your password: ')
  4.  
  5. if usernameinput == 'xxx' and passwordinput == '1234':
  6.  
  7. print ('You are granted access!')
  8.  
  9. elif usernameinput == 'xxx' and passwordinput != '1234' :
  10.  
  11. print ('Your password is incorrect!')
  12.  
  13. elif passwordinput == '1234' and usernameinput != 'xxx' :
  14.  
  15. print ('Your username is incorrect!')
  16.  
  17. else:
  18. print ('Your username and password are incorrect!')
Add Comment
Please, Sign In to add comment