Chapter

Collections and text

<p>Store related values in lists and dictionaries, then inspect and transform text safely.</p>

Lessons

  1. Lists and indexing

    Store an ordered collection, access items by index, and add or remove values.

  2. Dictionaries and key-value data

    Represent named facts with dictionary keys, safely retrieve values, and update records.

  3. Strings and useful text operations

    Use string methods, f-strings, and careful indexing to work with text.