Pack 2 · Challenge 2 of 5 · 10 XP · ⏱ 4 min
Mad Libs
📝 Templates are prompts with blanks. Fill three blanks with an f-string.
animal = "owl"
print(f"The {animal} said hoot.")The owl said hoot.
Instructions
- Make three text variables:
hero,placeandthing. - Build
storywith an f-string:f"{hero} went to {place} to find {thing}." - Print
story.
💡 Hint
An f right before the opening quote, and each variable name inside { }. Keep the full stop.
bot.py
Terminal