Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user1 = "Jeff"
- user2 = "Bob"
- password1 = "Password"
- password2 = "Lol"
- username = input("Login: >> ")
- password = input("Password: >> ")
- if username == user1:
- if password == password1:
- print ("Access granted")
- print ("Welcome to the system!")
- home()
- else:
- print ("Access denied")
- print ("Try again!")
- print ("n")
- time.sleep(2)
- login()
- elif username == user2:
- if password == password2:
- print ("Access granted")
- print ("Welcome to the system!")
- home()
- else:
- print ("Access denied")
- print ("Try again!")
- print ("n")
- time.sleep(2)
- login()
- else:
- print ("Access denied")
- print ("Try again!")
- print ("n")
- time.sleep(2)
- login()`
Add Comment
Please, Sign In to add comment