Skip to content

Lesson 43: Think in squares

Keep what matters

  • A delivery robot does not need to think in millimetres. It needs to know which square to go to.
  • Abstraction means keeping only the details that matter and leaving out the rest.
  • Here the floor becomes a grid of squares. go_to(col, row) hides the millimetres and the angles.

Words for this lesson

Word Meaning
abstraction keeping only the important details
grid rows and columns of squares
global variable a variable that every function can use

Log in or create account

IGCSE, A-Level & AP