1
00:00:07,880 --> 00:00:11,730
Welcome back. You've now seen

2
00:00:11,730 --> 00:00:14,610
some multiple nested data structures with inner lists

3
00:00:14,610 --> 00:00:18,344
and dictionaries inside outer lists and dictionaries.

4
00:00:18,344 --> 00:00:20,925
You've picked up some vocabulary about

5
00:00:20,925 --> 00:00:23,880
outer and inner elements and you've seen that we just

6
00:00:23,880 --> 00:00:29,485
have to use square brackets multiple times to descend into these nested data structures.

7
00:00:29,485 --> 00:00:34,155
If there is a list of numbers inside a list, inside a list,

8
00:00:34,155 --> 00:00:35,515
three levels of nesting,

9
00:00:35,515 --> 00:00:39,515
then we'll have to use three square brackets to pull out one of the numbers.

10
00:00:39,515 --> 00:00:41,615
We can do that all on one line,

11
00:00:41,615 --> 00:00:45,125
or as several steps each with its own line of code,

12
00:00:45,125 --> 00:00:49,370
but you'll need three square bracket operation somewhere in the code.

13
00:00:49,370 --> 00:00:52,415
You've also learned about the JSON format.

14
00:00:52,415 --> 00:00:58,540
Remember JSON.loadS to load from a string creating a Python list or dictionary,

15
00:00:58,540 --> 00:01:02,690
JSON.dumpS to dump to a string so you can save the string

16
00:01:02,690 --> 00:01:07,400
in a file or pretty print it with nice indentation and line breaks.

17
00:01:07,400 --> 00:01:09,949
As a reward for your perseverance,

18
00:01:09,949 --> 00:01:11,975
a few funny jokes about birds.

19
00:01:11,975 --> 00:01:13,965
Birds? Why birds?

20
00:01:13,965 --> 00:01:17,420
Because we've been talking about nested data.

21
00:01:17,420 --> 00:01:20,960
It's almost wintertime here in Ann Arbor as I record this.

22
00:01:20,960 --> 00:01:25,735
What do you call a bird in the winter? A bird.

23
00:01:25,735 --> 00:01:28,545
Why do birds fly south for the winter?

24
00:01:28,545 --> 00:01:31,140
Because it's too far to walk.

25
00:01:31,140 --> 00:01:33,920
Did you hear that joke about the broken egg?

26
00:01:33,920 --> 00:01:38,640
Yeah. That one cracked me up too. See you next time.