Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- complete = False
- user = [["username",""],["password",""]]
- def Access():
- for n in range (len(user)):
- user[n][1] = input(user[n][0])
- while not complete:
- Access()
- username = input("Reinput the username?")
- password = input("Reinput the password?")
- if username == user[0][0]:
- print("Good!")#what i want it to print if correct
- else:
- print("Input details again!")#what it keeps printing no matter what
- if password == user[1][1]:
- print("User has been identified, Welcome", username)
- complete = True
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement