Programming fundamentals›Your first program
Tutorial 1 of 13 · Programming fundamentals · Values and flow · BeginnerYour first program
Write a few lines, run them, and watch the computer follow your instructions one at a time.
6 lessons, the last is a challenge · about 1 h · Python and Java
Before you startYou have used a computer and a web browser. You have never written a program, and you do not need to have.
Needs nothing: this is where the path starts.
What you’ll be able to do
- 1Write and run a short program, and say what the computer does on each line, from top to bottom.
- 2Tell the kinds of value apart: whole numbers, numbers with a fraction part, text, and yes/no.
- 3Use a variable: give it a value, give it a new value, and say what it holds after any line.
- 4Work out what a line of arithmetic gives, including the order of operations, the kinds of division and the remainder.
- 5Turn text into a number and a number into text, and explain why "3" + "4" is 34.
Lessons
Next in this path
Next: 2 · Making decisions · 5 lessons · 55 min
Let a program ask a question and take a different path depending on the answer.
Playground
Try the same model with your own values. No checks, nothing recorded.
Open the playground