Lesson 2 of 12
Build your first program from flowchart blocks: Start, Tell and End, joined with arrows. Press Run, or Step to watch each block, and see the code it makes.
About 5 minutes · 3 parts, each with a program to try
Part 1 of 3
A new program already has a Start block. Add blocks under it, join them with arrows, and finish at End.
The smallest useful program has one block in the middle: a Tell that shows a message.
"Hello World"Hello Worldprint("Hello World")Part 2 of 3
Words go inside "quotes": "I am learning to code". Without quotes, Tell works things out: 7 * 6 shows 42.
Join words and values with +: "Score: " + 10 shows Score: 10.
"I am learning to code"7 * 6"Score: " + 10I am learning to code42Score: 10print("I am learning to code")print(7 * 6)print("Score: " + str(10))Part 3 of 3
To join two blocks, drag from the dot at the bottom of one to the next. Click the + on any arrow to slip a new block in between.
Run plays the whole program. Step runs one block at a time, and the block that's running glows, so you can watch it think.
"One""Two""Three"OneTwoThreeprint("One")print("Two")print("Three")Quick check