Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. username = ""
  2. password = ""
  3. logout = ""
  4. logout1 = 0
  5. while logout1 == 0:
  6.     username = raw_input("Username")
  7.     password = raw_input("Password")
  8.     if username == "carllll" and password == "oklahoma1":
  9.         print "Hello Carl."
  10.         logout1 = 1
  11.     if username == "pyrofreak143" and password == "lozer":
  12.         print "Hello George."
  13.         logout1 = 1
  14.     if username == "Jazi" and password == "jazi":
  15.         print "Hello Matt."
  16.         logout1 = 1
  17.     else print "error, please ask carl to input your name/password into the database"
  18.  
  19. while username != "":
  20.         logout = raw_input("Would you like to logout?")
  21. if logout == "yes":
  22.     logout1 = 0
  23. if logout == "no":
  24.     logout1 = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement