PyAI Learn Türkçe

Module 5

Data collections

list, dict, set

When you finish this module you can say:

I can hold and process many pieces of data in lists, dicts, and sets.

By the end of this module you'll be able to write a program that splits a text into words, counts how many times each one appears, and finds the most frequent one.

Start

Lessons

11 lessons · ≈ 107 min

  1. Lists and indexing9 min
  2. Slicing8 min
  3. Changing a list12 min
  4. Looping over a list, and enumerate9 min
  5. Building a list in one line9 min
  6. Tuples and zip9 min
  7. Dictionaries10 min
  8. Looping over a dictionary10 min
  9. Set: a collection with no repeats8 min
  10. Same object, or a copy?11 min
  11. Project: Word counter12 min · project

Practice exercises

Short writing exercises, independent of the lessons: Go to the exercises

  1. Add a score and sort
  2. Update the squad
  3. Numbered list
  4. Name and grade pairs
  5. Smallest and largest
  6. Grade report
  7. Unique letters
  8. Empty grid