May 2026
Intermediate to advanced
418 pages
9h 29m
English
In this chapter, we will examine how to loop through all the key/value pairs of a dictionary across the three types of dictionaries discussed in the previous chapter:
Single heterogeneous dictionary
Dictionary of dictionaries
List of dictionaries
For someone who is new to Python, some of this may seem a bit daunting at first. Just take it step by step and remember that the more you work with iterating through nested dictionaries, the more familiar they will become.
Note
You might consider reading this chapter after reading Chapter 8, “Configuring Devices with NAPALM,” or just skimming it for now and coming back to it later if you need more details.
Before we begin iterating through structured ...
Read now
Unlock full access