PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/login.py

https://github.com/danwilliams34/PythonTutorial
Python | 13 lines | 11 code | 2 blank | 0 comment | 6 complexity | f2fbd89c37c00d5fc7615f8688c2887b MD5 | raw file
  1. username = raw_input("Please enter your username: ")
  2. if username == 'user1':
  3. print ("You have logged in with basic rights")
  4. while username == 'admin':
  5. print ("You have logged in with admin rights")
  6. while username == 'user1' or 'admin':
  7. password = raw_input("Please enter your password: ")
  8. if username == 'user1':
  9. password = 'qwerty'
  10. while username == 'admin':
  11. password = '1234'