Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username = 'jonsnow'
- password = 'thenorth'
- if username == 'jonsnow' and password == 'thenorth':
- print('Access permitted')
- else:
- print('Not allowed')
- if username == 'jonsnow' or password == 'thenorth':
- print('Access permitted')
- else:
- print('Not allowed')
- logged_in = True
- standard_user = False
- if logged_in and not standard_user:
- print('You can access the admin dashboard')
- else:
- print('You can only access the standard dashboard')
Add Comment
Please, Sign In to add comment