CodePlay ?

Home

Unit ยท collections

Lists & Words

A list keeps many values in order, a string is a list of characters, and a dict looks values up by name. The same for loop works on all of them: for item in my_list visits each item in turn.

0 / 7 done

  1. 1 Which color?๐Ÿ”ฎ Predict
  2. 2 The hottest day๐Ÿ‘ฃ Trace
  3. 3 Collect the even numbers๐Ÿงฉ Parsons
  4. 4 A louder greeting๐Ÿ”ง Modify
  5. 5 The last item๐Ÿž Debug
  6. 6 Count the vowelsโœ๏ธ Write
  7. 7 Tally the wordsโœ๏ธ Write