Test if a password entered is correct. The secret phrase is Ada Lovelace. Sample Run 1 Enter the Password: Ada Lovelace Sample Output 1 Correct! Sample Run 2 Enter the Password: Blaise Pascal Sample Output 2 Not Correct

Respuesta :

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.

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE