Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. x=1
  2. while x==1:
  3. type = raw_input("Please enter if you are a employee, vendor, or customer.")
  4.  
  5. if type == "employee":
  6. username = raw_input("Please enter your Employee Username. ")
  7. if username == "emp001":
  8. password = raw_input("Please enter password. ")
  9. if password == "EMP222":
  10. print"WELCOME to the Business Employee."
  11. x==0
  12. break
  13. if password != "EMP222":
  14. print"Thats the wrong password."
  15. x==0
  16. if username != "emp001":
  17. print "Thats the wrong username."
  18. x==0
  19.  
  20. if type == "vendor":
  21. username = raw_input("Please enter your Vendor Username. ")
  22. if username == "VEN002":
  23. password = raw_input("Please enter password. ")
  24. if password == "vendor":
  25. print"WELCOME to the Business Vendor."
  26. x==0
  27. break
  28. if password != "vendor":
  29. print"Thats the wrong password."
  30. x==0
  31. if username != "VEN002":
  32. print "Thats the wrong username."
  33. x==0
  34.  
  35. if type == "customer":
  36. username = raw_input("Please enter your Customer Username. ")
  37. if username == "CUST111":
  38. password = raw_input("Please enter password. ")
  39. if password == "buynow999":
  40. print"WELCOME to the Business Customer."
  41. x==0
  42. break
  43. if password != "buynow999":
  44. print"Thats the wrong password."
  45. x==0
  46. if username != "CUST111":
  47. print "Thats the wrong username."
  48. x==0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement