Simple python code repeating an else statement, and i don't know why : <p>So i am new to python and have just started creating a basic program with a menu system that i will add to, to help display my progress and knowledge on python within one file, and to help make me more comfortable with multiple functions, functions calling function etc....</p>

<p>My program is repeating an else statement after inputting the sting that would make the if statement correct.</p>

<p>Take a look:</p>

<pre><code>def menuReturn():
returnAns = input("Would you like to return to the menu? [y/n] ")

if returnAns.lower == "y":
    print("Returning you to the menu")
    print("")
    print("")
    print("")
    menu()

elif returnAns.lower == "n":
    print("Exiting...")

else:
    print("Please repeat the answer")
    menuReturn()

def askName():
    name = input("What is your name? ")
    print(name + "? Thats a beautiful name!")
    menuReturn()

def menu(menuAnswer):
    if menuAnswer.lower == "askname":
        print("Good Choice!")
        askName()

    else:
        print("Please try again")
        menu(menuAnswer)

print("Welcome to the menu!")
print("")
print("Please enter a keyword from the following")
print("")                                                                       
#Add items here!
print("-askName")
menuAnswer = input("")
menu(menuAnswer)
</code></pre>

<p>I had to add some unnecessary indentations for me to post this question, so sorry about that</p>

<p>Please give a simple answer, as my programming 'lingo' is not at full capacity</p>

<p>Hope to hear from you soon,
John Fletcher</p>
