computer4kids is now ComputerLeap. Same free lessons, same team. Read why we changed our name

← All lessons · 🧑‍💻 Coding Academy

📖

🎓

⏱ 30 min

Free

Project: Silly Story Maker

Put it all together! Build a program that turns your answers into a hilarious story.

🎯 What you will learn

  • Combine print, variables and input
  • Plan a program before coding
  • Share your project

👋 Let’s get started!

Time for your first PROJECT 🏆! You’ll build a Silly Story Maker: it asks for words, then mixes them into a funny story. Use everything you learned!

🪜 Step by step

1. 🗺️ Plan

Decide which words to ask for: a name, an animal, a food, a number.

2. 🙋 Ask

Use input() for each word and save it in a variable.

name = input("A name: ")
animal = input("An animal: ")
3. 📖 Tell the story

Use print() and + to put the words into sentences.

print("Once upon a time, " + name + " met a dancing " + animal + "!")

🧪 Try it!

Change the code and press ▶ Run to see what happens. You can’t break anything!

Silly Story Maker

name = input("A name: ")
animal = input("An animal: ")
food = input("A food: ")
number = input("A number: ")

print("📖 The Silly Story")
print("Once upon a time, " + name + " found a giant " + animal + ".")
print("The " + animal + " ate " + number + " bowls of " + food + "!")
print("Then they danced until the moon giggled. The end! 🌙")

Order the story program

hero = input("Hero name: ")
place = input("A place: ")
print(hero + " flew to " + place + "!")
print("The end 🎬")

📖 Key words

Tap a card to flip it over!

Project
A bigger program you build 🏆
Plan
Deciding steps before coding 🗺️
Remix
Changing someone’s project to make it yours 🎨

🏆 Challenge

Remix the story: add one more question and one more sentence. Then show a grown-up! (No right answer — be creative!)

Challenge

name = input("A name: ")
print(name + " is a coding superstar! ⭐")

Knowledge Check Quiz

  1. Which function asks the user for a word?
  2. What should you do before coding a project?
  3. What joins strings together?
← Previous lesson