Python Forum

Full Version: Help - why is my print statement being ignored?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi - I am new to Python and I am taking a beginners course that hasn't even started yet. A pre-assignment to practice is just not working. Getting frustrated and may not proceed. Can you tell me what I am missing here in the code (the print line, "I like your shoes", is being ignored.)

n=input("What is your name?")
print("Hello", n, ":)")

if n=='Amar':
    print("I like your shoes")
if n=='Brandy':
    print("You seem like a cool person")
**For Amar, I am only getting:
What is your name?
Hello Amar :)
It works for me
Output:
What is your name?Amar Hello Amar :) I like your shoes
My apologies and Thank you, I will review the BBcode help.