1
00:00:05,200 --> 00:00:08,080
Earlier in the course, we looked at
two of the data structures

2
00:00:08,080 --> 00:00:12,320
that are built into python. We saw
how to use lists and tuples,

3
00:00:12,320 --> 00:00:16,239
and discussed some of the differences
between them. In this section, we're going

4
00:00:16,239 --> 00:00:18,720
to learn about two more
built-in data structures:

5
00:00:18,720 --> 00:00:23,840
dictionaries and sets. lists
and tuples are sequence types.

6
00:00:23,840 --> 00:00:27,199
That means we can use indexing
to access individual items.

7
00:00:27,199 --> 00:00:30,640
dictionaries and sets
aren't sequences - we can't

8
00:00:30,640 --> 00:00:36,640
access the items using index positions.
When dealing with items in a dictionary,

9
00:00:36,640 --> 00:00:40,320
we use a key to get individual
values from the dictionary.

10
00:00:40,320 --> 00:00:44,800
dictionaries store key/value pairs.
You'll also find a dictionary referred

11
00:00:44,800 --> 00:00:48,960
to as a mapping, and if you
know java then a python dict

12
00:00:48,960 --> 00:00:53,440
is equivalent to a java hashmap.
A set is an unordered

13
00:00:53,440 --> 00:00:56,640
collection of things.
There's no way to retrieve a specific

14
00:00:56,640 --> 00:01:00,640
item from a set, which can
be confusing, but sets can be

15
00:01:00,640 --> 00:01:03,240
very useful, as we'll see.

16
00:01:03,240 --> 00:01:06,640
So for this section, I'm
going to create a new project,

17
00:01:06,640 --> 00:01:09,760
and we'll call this one
DictAndSet.

18
00:01:09,760 --> 00:01:12,880
We've done this a few times now.
Choose Python, on the left hand side,

19
00:01:12,880 --> 00:01:16,700
and choose a project sdk in the drop
down - the top at the right there -

20
00:01:16,700 --> 00:01:20,400
and then click on Next.
Then type in the project name,

21
00:01:20,400 --> 00:01:23,759
which I mentioned was DictAndSet.

22
00:01:24,560 --> 00:01:28,080
Click on Finish.

23
00:01:28,080 --> 00:01:36,240
Alright, so we'll start the section
with dictionaries in the next video.

