Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. def usernameAndPasswordInput ():
  2. username = input ("Enter your username: ")
  3. password = input ("Enter your password: ")
  4. print ()
  5. for elmt in masterlist:
  6. if elmt [0]==username:
  7. if elmt [1]==password:
  8. return masterlist
  9. return True
  10. else:
  11. print ("Your username or password is incorrect.")
  12. print ()
  13. return False
  14.  
  15. def main() :
  16. startMessage ()
  17. getData ("facepalm")
  18. LoginResponse = False
  19. while LoginResponse == False:
  20. Startresponse = startOptions ()
  21. if Startresponse == "1":
  22. LoginResponse = usernameAndPasswordInput ()
  23. elif Startresponse == "2" :
  24. quitMessage ()
  25. return
  26.  
  27. #LoginResponse
  28. if LoginResponse == True:
  29. HomePageResponse = homePageOptions ()
  30. #HomePageResponse
  31. if HomePageResponse == "1":
  32. viewProfile ()
  33. elif HomePageResponse == "2":
  34. viewMessages ()
  35. elif HomePageResponse == "3":
  36. Message = leaveMessage ()
  37. elif HomePageResponse == "4":
  38. Startresponse = startOptions ()
  39.  
  40. main ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement