loop
← All sections

Module 3 · Boolean values, conditional execution, loops, lists and list processing, logical and bitwise operations

Lists and list processing

Hold many values under one name, in order. Index them, change them, grow and shrink them — the collection that loops were made to process.

Begin lesson 1 →
  1. 1What are lists?Many values under one name — and why that beats many variables.
  2. 2Indexing listsReach any element by its position — including from the end.
  3. 3Reading and changing contentGet an element, replace it in place, and measure the list.
  4. 4Adding elementsappend() to the end, insert() anywhere — watch the rest shift.
  5. 5Removing elementsdel, pop() and remove() — and the gap closing behind them.
  6. 6Lists in actionLoop over them, slice them, and put them to real work.
  7. 7QuizCheck your understanding of indexing, slicing and list methods.