No history yet

Introduction to Coding

What is Coding?

Coding is like talking to a computer. But instead of using English or Spanish, we use a special language that computers can understand. When you write code, you're giving the computer a set of instructions to follow. It's a lot like giving your friend directions to your house or writing down the rules for a game.

Think about a recipe for baking cookies. It tells you exactly what to do, step by step. Add flour, then add sugar, then mix. A computer follows code just like that. It will do exactly what you tell it to do, in the exact order you tell it to.

Coding is Everywhere

You might not see it, but code is working all around you every day. It’s what makes our technology work.

Do you like playing video games? Code tells the characters when to jump, run, or collect coins. When you watch a video on a tablet, code makes it play, pause, and stop. Even the microwave in your kitchen uses code to heat your food for the perfect amount of time.

Lesson image

From the apps on your parents' phone to the traffic lights on the street, coding makes so many things in our world possible.

The Building Blocks of Code

To learn how to code, you just need to understand a few simple ideas. These are the building blocks that all coders use, whether they're making a simple game or a huge website.

Command

noun

A single instruction given to a computer.

A command is one specific action. In a game, “jump” is a command. “Turn left” is a command. “Say hello” is another command. They are small, simple instructions.

The next idea is just as simple: order matters.

A sequence is a set of commands in a specific order. When you get ready for school, you follow a sequence: you put on your socks, and then you put on your shoes. If you did it the other way around, it wouldn't work! Coding is the same. The computer follows the commands one after another, exactly in the order you write them.

Finally, when you put a sequence of commands together to solve a problem or complete a task, you have an algorithm.

Algorithm

noun

A list of steps or rules to follow to finish a task.

An algorithm is the plan. Brushing your teeth is an algorithm. Making a sandwich is an algorithm. In coding, an algorithm is the complete set of instructions that tells the computer how to go from a starting point to an end goal.

Algorithm: Make a Sandwich

  1. Get two slices of bread.
  2. Get the peanut butter and a knife.
  3. Spread peanut butter on one slice of bread.
  4. Put the two slices of bread together.

Learning to code is just learning how to think in steps. By understanding commands, sequences, and algorithms, you're already on your way to becoming a coder!

Quiz Questions 1/4

What is the best way to describe what 'coding' is?

Quiz Questions 2/4

In the world of coding, what is a single action like "jump" or "turn left" called?

That's the basic idea of coding. It's about giving clear, step-by-step instructions for a computer to follow. Once you understand that, you can start to build amazing things.