Kids Coding
What Is Coding
Code is instructions a computer follows in order. You write them. Python runs them.
A computer is not magic
A computer only does what you tell it, in order, one step at a time. Coding is writing those steps in a language the computer can follow.
The language on this path is Python. You type words. Python runs them. You see the result.
Code looks like this
This program has two instructions. Python does the first, then the second. It does not skip. It does not guess.
Two steps
print("Put on socks")
print("Put on shoes")If you swap the two lines, the order of the output swaps too. That is the whole idea.
Who does what
| You | Python |
|---|---|
| Choose the steps | Follow the steps |
| Write the words | Run the file top to bottom |
| Read the output | Print what you asked for |
How you work here
- Read a short page.
- Run the example in Try Python.
- Change one word. Run it again.
- Press Next.
Real life
Getting dressed in the morning.
The order matters. Socks, then shoes. Code is the same: steps in order.
Morning steps
print("1. Socks")
print("2. Shoes")
print("3. Go to school")Change one word. Run it. That is how this idea shows up outside the lesson.
Try it
Exercise 1: Write two print lines: one that says your name, and one that says what you want to build.
Show solution
print("Sam")
print("A game")