I'm doing a GCSE in computing and starting a new code for fun and I'm having trouble like a noob. I am making a code asking them what the password is and if they get it wrong it'll ask again until the requirements are met, I have looked on the internet and it gave me a countdown on all of the websites I checked. this is my code so far...
password = 1234
passinput = (input("what is your password? "))
I have tried several things such as...
while True:
and
while False:
but I don't understand how to use them properly. I have learned it in class, but it's an easy thing to forget. I want the code to keep on asking the user until they input "1234" (the password)
please help.