Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- userName = "fred"
- passWord = "fred1"
- uNameInput = "s"
- pWordInput = "s"
- count = 1
- uNameInput = input("Enter the username: ").lower()
- pWordInput = input("Enter the password: ")
- while userName != uNameInput or passWord != pWordInput:
- uNameInput = input("Enter the username: ").lower()
- pWordInput = input("Enter the password: ")
- count +=1
- print("Success after", count,"attempts.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement