Welcome back. You've now seen
some multiple nested data structures with inner lists
and dictionaries inside outer lists and dictionaries.
You've picked up some vocabulary about
outer and inner elements and you've seen that we just
have to use square brackets multiple times to descend into these nested data structures.
If there is a list of numbers inside a list, inside a list,
three levels of nesting,
then we'll have to use three square brackets to pull out one of the numbers.
We can do that all on one line,
or as several steps each with its own line of code,
but you'll need three square bracket operation somewhere in the code.
You've also learned about the JSON format.
Remember JSON.loadS to load from a string creating a Python list or dictionary,
JSON.dumpS to dump to a string so you can save the string
in a file or pretty print it with nice indentation and line breaks.
As a reward for your perseverance,
a few funny jokes about birds.
Birds? Why birds?
Because we've been talking about nested data.
It's almost wintertime here in Ann Arbor as I record this.
What do you call a bird in the winter? A bird.
Why do birds fly south for the winter?
Because it's too far to walk.
Did you hear that joke about the broken egg?
Yeah. That one cracked me up too. See you next time.