Chapter 6 · Part I: Basics

Dictionaries

Book: Ch. 6, 'Dictionaries', pp. 91–112

Pages this chapter covers

Section titles and printed pages from the 3rd edition. Notes below use the full citation.

  • A Simple Dictionaryp. 92
  • Working with Dictionariesp. 92
    • Accessing Values in a Dictionaryp. 92
    • Adding New Key-Value Pairsp. 93
    • Starting with an Empty Dictionaryp. 94
    • Modifying Values in a Dictionaryp. 94
    • Removing Key-Value Pairsp. 96
    • A Dictionary of Similar Objectsp. 96
    • Using get() to Access Valuesp. 97
  • Looping Through a Dictionaryp. 99
    • Looping Through All Key-Value Pairsp. 99
    • Looping Through All the Keys in a Dictionaryp. 101
    • Looping Through a Dictionary’s Keys in a Particular Orderp. 102
    • Looping Through All Values in a Dictionaryp. 103
  • Nestingp. 105
    • A List of Dictionariesp. 105
    • A List in a Dictionaryp. 108
    • A Dictionary in a Dictionaryp. 110
  • Summaryp. 111

Notes

Notes are not written yet

The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.