Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def signIn():
- userEntry = raw_input("Please enter your username:")
- userEntry1 = raw_input("Please enter your password:")
- searchfile = open("user_account.txt", "r")
- for line in searchfile:
- if userEntry and userEntry1 in line:
- action = raw_input("Do you want to take a quiz or output reports?")
- if action.lower() == "take a quiz":
- takeQuiz()
- elif action.lower() == "output reports":
- reports()
- else:
- print "ERROR: RESTART PROGRAM."
- elif userEntry and userEntry1 not in line:
- print "ERROR: INCORRECT USERNAME OR PASSWORD."
Add Comment
Please, Sign In to add comment