Name Error adj1 on Mad Libs


#1

I don’t know what is going on. Before it worked perfectly fine but now it is saying that adj1 is not defined
print ‘Mad Libs is starting!’

name = raw_input('Enter a name: ')
adj1 = raw_input('Enter an adjective: ')
adj2 = raw_input('Enter an adjective: ')
adj3 = raw_input('Enter an adjective: ')
verb = raw_input('Enter a verb: ')
noun1 = raw_input('Enter a noun : ')
noun2 = raw_input('Enter a 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)

File “Madlibs.py”, line 31, in
print STORY % (name, adj1, adj2, animal, fo
od, verb, noun1, fruit, adj3, name, superhero,
name, country, name, dessert, name, year, noun2
)
NameError: name ‘adj1’ is not defined


#2

This line contains a invalid characters. Replace the fancy quotes with single quotes.