I'm trying to learn Python and I tried making just a little "Secret" protected by a password. I also tried to make it so if you typed "help" it would give you a hint. Well I made it so when you type anything that's not the password it would say incorrect and you'd try again. It almost works perfectly except when I type "help" or input the correct password, the "incorrect" still comes up and I have to retype the correct password, which then works. What did I do wrong?
def helpInfo():
print('The Password is a single Number')
def secret():
print ('Secret password protected stuff blah blah blah')
def intro():
print('Hello! What is the Password?')
def check():
password = 3
guess = input()
if guess == password:
print ('Correct!')
if guess == help:
helpInfo()
if guess != password or help:
print ('Incorrect! Please try again')
check()
intro()
check()