Python Arena

Module 16

Definite iteration

The for loop, which goes through the items of a list or the characters of a string one by one. Counting with range, turning a range into a list, building new lists in a loop, and searching a list for its best item by hand.

Steps

  1. Going through a list with for
  2. Going through a string
  3. Counting with range
  4. Ranges, lists and new lists
  5. The best item so far