Answer:
a1="Ada Lovelace"
a2= input("Enter Password: ")
def checkpassword(a2):
if a2 == a1:
print("Correct Password")
else:
print("Wrong Password")
return 0
Explanation:
The string as password is given. Now we ask the user to input the password, and this is compared to the original password. If the passwords match, print password matched, or else print wrong password.