Skip to content
Truth Academy.
Truth Academy
← Computer Science

Foundations · 16 min

The building blocks of code

0 of 4

Every program you have ever used, from games to banking apps, is built from just four ideas: storing values, making choices, repeating, and naming chunks of work.

Predict first

In Python: x = 5; x = x + 1; print(x). What is printed?

In Python: x = 5; x = x + 1; print(x). What is printed?

Concepts: Programming basics · Algebra