Story Writer
Write a program that will ask a user for details of a story and then include those details within a story template. The program should ask the user for the species of the character, the name of the character, and a name of the forest that the character is exploring. This will then generate the first sentence of the story. This sentence must then be printed out for the user to read.
What species is the main character? (Giant, Elf, Human): Giant What is the main characters name?: Grom What is the name of the forest?: Nelwyn Once upon a time a Giant named Grom was exploring Nelwyn Forest.
get type of species get name of character get name of forest create the first line of the story print out the first line of the story
species = str(input("What species is the main character? (Giant, Elf, Human)"))
name = str(input("What is the name of the main character?: "))
forest = str(input("What is the name of the forest?: "))
line1 = "Once upon a time a " + species + " named " + name + " was exploring " + forest + " forest."
print(line1)
# Ask the user for the details of the story
species = str(input("What species is the main character? (Giant, Elf, Human)"))
name = str(input("What is the name of the main character?: "))
forest = str(input("What is the name of the forest?: "))
# Create the first line of the story
line1 = "Once upon a time a " + species + " named " + name + " was exploring " + forest + " forest."
# Print out the first line of the story
print(line1)
Extension
Add two additional lines to the story.
The second line should include a magical item, a villains name, an action.
The third line should include both the main characters name and the villains name.
What species is the main character? (Giant, Elf, Human): Giant What is the main characters name?: Grom What is the name of the forest?: Nelwyn Once upon a time a Giant named Grom was exploring Nelwyn Forest. What magical item is in the story?: A magical lamp What is the name of the villain?: Vayne What action could happen in the second sentence? steal the lamp There they found A magical lamp, but Vayne tried to steal it. Luckily, Grom was able to fight Vayne off and keep it for himself.