LEARN PYTHON 2
Python Mad Libs
Tried the following many times but got this error: type error, not all arguments converted during string formatting. What is wrong? Thanks.
STORY = “This morning %s woke up feeling %s. ‘It is going to be a %s day!’ Outside, a bunch of %s were protesting to keep %s in stores. They began to %s to the rhythm of the %s, which made all the %s 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 %s ruled the world.”
print STORY % (name, adjective1, adjective2, animal, food, verb, noun1, fruit, adjective3, name, superhero, name, country, name, dessert, name, year, noun2)