Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. print "Welcome to E-Commerce of Vermont"
  2.  
  3. correct = False
  4.  
  5. def login():
  6. username = raw_input("What is your Username/Code?")
  7. password = raw_input("What is your password?")
  8. if((username == "VEN002")and(password == "vendor")):
  9. correct == True
  10. print("Welcome Vendor You are now logged in")
  11.  
  12. elif((username == "emp001")and(password == "EMP222")):
  13. correct == True
  14. print("Welcome Employee You are now logged in")
  15.  
  16. elif(
  17.  
  18. ((username == "CUST111")and(password == "buynow999"))):
  19. correct == True
  20. print("Welcome Customer You are now logged in")
  21. else:
  22. while (correct != True):
  23. print ("Your username or password are incorrect please try again ")
  24. login()
  25. break
  26.  
  27. login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement