Jun-03-2020, 04:08 AM
Hello,
I am teaching myself python and am in the very very beginning stages and have come across my first snag. I'm unsure why this code isn't working could use some help. I apologize for the simplicity of the help needed. Its just a simple input program for my kids but i cant figure out why I'm getting error.
Code:
Matt
I am teaching myself python and am in the very very beginning stages and have come across my first snag. I'm unsure why this code isn't working could use some help. I apologize for the simplicity of the help needed. Its just a simple input program for my kids but i cant figure out why I'm getting error.
Code:
print("Hello, my name is The Computer. What is yours?")
response = input()
pname = str(response)
if pname = "Noah" or pname = "noah":
print(pname + "is a great name! Hello.")
if pname = "Damian" or pname = "damian":
print("I once knew a dolphin named " + pname)Thanks,Matt
