Hi I am trying to write a function password_input(prompt, password) that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin.
This is the testing code:
password_input(“Enter your password: “,”dromedary”) print “Welcome to my computer!”
I know that I have to use a while loop to keep checking the password, but thats about it.
Any help is appreciated, thanks a lot!