Skip to content

Commit

Permalink
Create 8.1.1 Project: Password Authenticator
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeHS-Solutions authored Jan 20, 2024
1 parent e81706c commit b3c3e47
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
print("Password Authentication Program:")

# This is the original password being compared.
authentication = "qwerty"

# The password is checked in the for loop.
for i in range(3):
password = input("Enter your password: \n")

if(password == authentication):
print("Access Granted")
break
else:
print("Incorrect Password.")
if(password != authentication):
print("The maximum number of attempts has been reached.")
print("Acces Denied")

0 comments on commit b3c3e47

Please sign in to comment.