Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # This program is a basic login system experiment
  2.  
  3. print ('Hello, Enter your name')
  4. username = input()
  5. if username != ('Alice'):
  6. print ('incorrect name')
  7. while username != ('Alice'):
  8. print ('Try again')
  9. if username == 'Alice':
  10. print ('Name Accepted, Enter password')
  11. password = input()
  12. if password == 'Swordfish':
  13. print ('password accepted, welcome')
  14. if password != 'Swordfish':
  15. print ('incorrect password')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement