Skip to content

Lesson 24: Sorting robot

Sort the metal

  • Recycling centres use robots to sort things: each kind goes into its own bin.
  • The robot reads the colour with the down eye, decides which bin, and carries the disk there with its magnet.
  • Sorting is a decision (if ... else) inside a loop: look, decide, carry, come back, look again.

Words for this lesson

Word Meaning
sort put things into groups
bin a box or place where things are put
recycling using old material again
abs the size of a number without its sign: abs(-5) is 5

Log in or create account

IGCSE, A-Level & AP