Ask coding questions

← Back to all posts
If and Else Functions
LilWolfy (59)

Hi, I'm making a quiz, and I don't know the Python command for something.
I'm attempting to make something like this:

Code: What is your name?

You: BLAH BLAH

Code: Hi BLAH BLAH

How do you make the code say the name?
Maybe add a variable?
Let me know for points. :)

Answered by InvisibleOne (3226) [earned 5 cycles]
View Answer
Comments
hotnewtop
InvisibleOne (3226)

something like this:

name = input("What is your name?")
print("Hi " + name)
LilWolfy (59)

@InvisibleOne Thank you so much!
It was a big help.

InvisibleOne (3226)

No problem, let me know if you have any other issues I can help you with. @LilWolfy

LilWolfy (59)

@InvisibleOne Thanks! Here's +5 Cycles!