โ† Back to Blog Coding Basics

๐Ÿ’ป Meet Vera: How Does a Computer Understand What I Say?

Vera thinking at her laptop, wondering how a computer knows what she wants it to do, with her superhero cat Mojo jumping over a rock

Hello, bright stars! ๐ŸŒŸ Today Vera has a big question about coding. Let's think it through together!

๐Ÿค” Vera's Big Question

Vera was curious. She looked at her computer and asked, "How do you know what I want you to do?"

Vera looking thoughtfully at her laptop with a question mark above her head

The computer didn't answer. But Vera discovered something important: computers follow instructions. When you play a game, someone has already given the computer instructions on how the game should work.

A computer can't guess what you want โ€” it only knows what to do because a programmer already told it, step by step!

๐Ÿฑ Mojo the Superhero Cat

Imagine you are playing a game about a superhero cat called Mojo. Mojo has to help a little kitten get home safely โ€” but there are obstacles in his way!

You press the space key, and Mojo jumps over a rock. How does the computer know that? Because a programmer gave it an instruction:

๐Ÿพ "When the player presses the space key, make Mojo jump!"

The computer follows the instruction, and... JUMPS! ๐Ÿฑ๐Ÿ’จ

๐ŸŽฎ Let's Try a Little Challenge!

Mojo needs to jump over the rock so he can save the kitten. What makes that happen?

A. The computer guesses  ยท  B. A programmer's instruction  ยท  C. Nothing at all

๐ŸŽ‰ Answer: B! A programmer's instruction tells the computer exactly what to do when you press the space key.

๐Ÿš€ That's Where Programming Comes In

Programmers use languages like Scratch and Python to give computers instructions. So when you write a program, you are basically telling the computer:

1
"Do this."
2
"Then do this."
3
"Now do this!"
4
Computer follows along!

The computer follows your instructions step by step, in exactly the order you give them.

โœจ In Short

๐Ÿ’œ Remember

Programming is a way of giving instructions to a computer. And the really exciting part? You can learn to give computers instructions too!

Next time you play a game, remember โ€” a programmer taught it every single move! ๐Ÿš€

โ† Back to all blogs