Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Welcome to E-Commerce of Vermont"
- correct = False
- def login():
- username = raw_input("What is your Username/Code?")
- password = raw_input("What is your password?")
- if((username == "VEN002")and(password == "vendor")):
- correct == True
- print("Welcome Vendor You are now logged in")
- elif((username == "emp001")and(password == "EMP222")):
- correct == True
- print("Welcome Employee You are now logged in")
- elif(
- ((username == "CUST111")and(password == "buynow999"))):
- correct == True
- print("Welcome Customer You are now logged in")
- else:
- while (correct != True):
- print ("Your username or password are incorrect please try again ")
- login()
- break
- login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement