Python Mad Libs, I can't see the error!

https://www.codecademy.com/courses/learn-python/projects/madlibs-1

"""
This program generates passages that are generated in mad-lib format
Author: Ankit
"""

# The template for the story

STORY = "This morning _ woke up feeling %s. 'It is going to be a %s day!' Outside, a bunch of %ss were protesting to keep %s in stores. They began to %s to the rhythm of the %s, which made all the %ss very %s. Concerned, %s texted %s, who flew %s to %s and dropped %s in a puddle of frozen %s. %s woke up in the year %s, in a world where %ss ruled the world."
print 'Madlibs is starting!'
name = raw_input("Enter a name: ")
adj1 = raw_input("Enter an adjective!: ")
adj2 = raw_input("Enter another adjective!: ")
adj3 = raw_input("Enter a third adjective!: ")
verb = raw_input("Enter a verb: ")
noun1 = raw_input("Enter a noun: ")
noun2 = raw_input("Enter another noun: ")
animal = raw_input("Enter an animal: ")
food = raw_input("Enter a food: ")
fruit = raw_input("Enter a fruit: ")
superhero = raw_input("Enter a superhero: ")
country = raw_input("Enter a country: ")
dessert = raw_input("Enter a dessert: ")
year = raw_input("Enter a year: ")
print STORY %  (name, adj1, adj2, animal, food, verb, noun1, fruit, adj3, name, superhero, name, country, name, dessert, name, year, noun2)

I’m getting ‘not all arguments converted during formatting’ but I can’t see a thing!

I think your problem has a fairly simple solution. In the first sentence of the STORY I believe you need a %s where the _ is. :wink:
Happy coding!

4 Likes