Question: Urgent help needed. I am supposed to write a Python script that will prompt for specific words then combine those words into a short story,
Urgent help needed. I am supposed to write a Python script that will prompt for specific words then combine those words into a short story, but when I write my variables and my long print statement (my story is long); the names of the variables show up in the story and not the actual value of the variables. I am using the latest version of Python. Could you help me, please?
Here is an example of what I am doing:
print()
print("Enter an adjective:",end="")
adjective=input()
print("Enter a name:",end="")
name=input()
print("Enter an ing verb:",end="")
ingVerb=input()
Here is an example of my errors: remember I use print f because my story is long
print(f"""There once was a " + adjective + " guy named + name ".)
I even tried this below:
print("There once was a { adjective} guy names {name}
But thee variables are not printing into the story. What can I do, please?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
