الانتقال إلى المحتوى

Lesson 36: Retrace the route

English

Remember the way

  • The robot follows arrows on the floor. To come back, it must remember every move.
  • A list stores the moves in order, like a notebook: first move at the top, last move at the bottom.
  • To go home, read the notebook from the bottom up and do the opposite of each turn.

Words for this lesson

Word Meaning
list / array many values under one name
element one value in the list
index the position of an element: 0, 1, 2 …
append add an element to the end

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP