How Do You Learn to Code?1 / 12

Part One · A game in her head

Mila had a whole game in her head. A hedgehog would run along the bottom of the screen, apples would drop from a tree, and every apple the hedgehog caught would earn a point. The only problem was that Mila had no idea how to build it. So she knocked on the door of her big brother Ivo, who was sixteen and wrote code for fun. "How do you learn to code?" she asked. Ivo grinned. "You make something," he said. "Start with the hedgehog."

More to do at Peabody

About How Do You Learn to Code?

A free Grade 5 story from the Peabody library, Level 10. It has 12 short pages and about 1021 words, so it reads in a few minutes.

Words this story teaches

At reading level 10, Peabody's practice works on vocabulary, spelling; the level page says what is in each.

The same topic for other ages

This is the middle book of three about learning to code, written for about ages 9 to 12 from the same checked facts.

Every topic at three levels

To print it or save it as a PDF, tap the ⓘ button above the story, then “Print this story”.

All the Level 10 stories, or the whole library.

For teachers: read it to the class, questions and key
Questions and answer key (6)
  1. What was Ivo's first answer to "How do you learn to code?"
    • A. Read a big book first
    • B. Make something
    • C. Buy a fast computer
    Show answerB. Make something
  2. Why did the apple fall straight through the hedgehog?
    • A. The "if" block was outside the loop, so it checked only once
    • B. The hedgehog was too small
    • C. Scratch was broken
    Show answerA. The "if" block was outside the loop, so it checked only once
  3. What does "remix" mean in this book?
    • A. Play music louder
    • B. Delete a project
    • C. Open someone's project and change it to make your own
    Show answerC. Open someone's project and change it to make your own
  4. Why was the moth note in 1947 a joke?
    • A. Moths cannot fly
    • B. People already called mistakes bugs
    • C. The computer was a toy
    Show answerB. People already called mistakes bugs
  5. Why did Mila click the green flag five more times?
    • A. She liked the sound
    • B. To make the bug happen again so she could watch it
    • C. To finish the game faster
    Show answerB. To make the bug happen again so she could watch it
  6. Why does Python code need to be translated?
    • A. It is written in French
    • B. A computer's processor only understands its own machine code
    • C. It is too short
    Show answerB. A computer's processor only understands its own machine code

For grown-ups: Peabody has no ads, not one, and nothing to sell your child. The Kids Pick, an independent kids' directory, rates its games 90/100. See what other free kids' sites load · Already have a profile?