Guest User

Untitled

a guest
Feb 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. username = 'jonsnow'
  2. password = 'thenorth'
  3.  
  4. if username == 'jonsnow' and password == 'thenorth':
  5. print('Access permitted')
  6. else:
  7. print('Not allowed')
  8.  
  9. if username == 'jonsnow' or password == 'thenorth':
  10. print('Access permitted')
  11. else:
  12. print('Not allowed')
  13.  
  14. logged_in = True
  15. standard_user = False
  16.  
  17. if logged_in and not standard_user:
  18. print('You can access the admin dashboard')
  19. else:
  20. print('You can only access the standard dashboard')
Add Comment
Please, Sign In to add comment