Lesson 1 of 12
A program is a list of steps the computer follows in order. Learn what that means with flowchart blocks you can run, and see it as real code.
About 4 minutes · 3 parts, each with a program to try
Part 1 of 3
A program is a list of instructions for a computer, like a recipe for a cook. Each instruction is one small step.
Computers are fast, but they only do exactly what the steps say. Writing good steps is what programming is.
"Wake up""Brush your teeth""Eat breakfast"Wake upBrush your teethEat breakfastprint("Wake up")print("Brush your teeth")print("Eat breakfast")Part 2 of 3
It starts at the first step and does one at a time, top to bottom. It never skips ahead or jumps back unless a step tells it to.
So order matters: swap two steps and the program does something different. Try it, then drag the blocks into a new order and run it again.
"3""2""1""Go!"321Go!print("3")print("2")print("1")print("Go!")Part 3 of 3
In B4Coder each step is a block, and arrows join them in order, from Start at the top to End at the bottom. That picture is a flowchart.
Here the program asks a question, keeps the answer, and uses it in the next step. You'll build one like it in the next two lessons.
name"Hello " + name + "!"AshaIt showsHello Asha!name = input("What is your name? ")print("Hello " + name + "!")Quick check