I'm trying to capture user input and store it as a variable for later use. Here is something along the lines of what I have right now:
prompt = "What is your name?\n" name = raw_input(prompt)
So from this I'll have the person's name, stored under the variable 'name'. Now what I want to do is take that variable and insert it into a string so that the output from the program will say something like:
"Hello Jared! How are you today?"
Except it doesn't necessarily need to say 'Jared'. I want 'Jared' to be replaced with whatever input the user gave and stored under the variable 'name'.
I was tinkering with something like the following:
print 'Hello,' name '! How are you today?'
That obviously didn't work. How would you all go about doing something like this? And WHY didn't my little snippet above work at all?