April 2021
Beginner
296 pages
7h 10m
English
Dictionaries hold collections of items, similar to the ordered lists you learned about in Chapter 7. Dictionaries, however, are unordered, and you use an associated value to access each item, which makes it easier to remember what the items in your dictionary represent. In this chapter, you’ll learn about Python’s dictionary syntax and methods, how to combine loops and dictionaries, and how to nest dictionaries and lists.
You’ll also learn how to work with another plaintext file format: JavaScript Object Notation (JSON). The syntax isn’t quite as simple as CSV, but it’s better suited for handling more complex data ...
Read now
Unlock full access