Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usernameinput = input('Please enter your username: ')
- passwordinput = input('Please enter your password: ')
- if usernameinput == 'xxx' and passwordinput == '1234':
- print ('You are granted access!')
- elif usernameinput == 'xxx' and passwordinput != '1234' :
- print ('Your password is incorrect!')
- elif passwordinput == '1234' and usernameinput != 'xxx' :
- print ('Your username is incorrect!')
- else:
- print ('Your username and password are incorrect!')
Add Comment
Please, Sign In to add comment