Errno 2 Python MadLibs


Current code:

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

# The template for the story

STORY = "This morning %s 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 running"
name = raw_input("Enter a name: ")

adjective_1 = raw_input ("Enter adjective 1: ")
adjective_2 = raw_input ("Enter adjective 2: ")
adjective_3 = raw_input ("Enter adjective 3: ")

verb_1 = raw_input ("Enter a verb: ")

noun_1 = raw_input ("Enter noun1: ")
noun_2 = raw_input ("Enter noun 2: ")

animal = raw_input ("Enter animal: ")
food = raw_input ("Enter food: ")
superhero = raw_input ("Enter superhero: ")
country = raw_input ("Enter country: ") 
dessert = raw_input ("Enter dessert: ")
year = raw_input ("Enter year: ")

print STORY % (name, adjective_1, adjective_2, animal, food, verb, noun_1, fruit, adjective_3, name, superhero, name, country, dessert, year, noun_2)

I get the following error:
Python: can’t open file ‘’: [Errno 2] No such file or directory

Anyone know why? Help :frowning:

Hey there and welcome to the community! :slight_smile:

I believe when you run a python file the name is case sensitive.
eg: vs