Most prompts are built from pieces. An f-string (an f right before the quotes) lets you drop variables into text with curly brackets.
food = "tacos"
msg = f"I could eat {food} every day."
print(msg)I could eat tacos every day.
That's a prompt template: the same sentence, filled in with different words each time.
name and thing.prompt with an f-string: f"Tell a fortune for {name} who loves {thing}."pip.ask(prompt).Put an f right before the opening quote, and the variable names inside { }. Keep the full stop at the end.
import pip
name = "Sam"
thing = "pizza"
prompt = f"Tell a fortune for {name} who loves {thing}."
print(pip.ask(prompt))Press "Talk it out" at the top. Our Discord opens soon; until then email us and paste your code.