8 Dictionaries and JSON
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 ...
Get Learn Python Visually now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.