1
00:00:00,510 --> 00:00:03,110
Hello and welcome to this video.

2
00:00:03,150 --> 00:00:09,450
In this video I'm going to introduce you to what list are in Python.

3
00:00:09,450 --> 00:00:11,360
What is a list.

4
00:00:11,490 --> 00:00:15,500
A list is basically what the name says.

5
00:00:15,510 --> 00:00:16,310
It's a list.

6
00:00:16,740 --> 00:00:23,260
So it's a collection of data which can be of mixed type.

7
00:00:23,430 --> 00:00:29,210
What that means is that the content of the lists can be a string which is a text.

8
00:00:29,340 --> 00:00:30,360
It can be a number.

9
00:00:30,360 --> 00:00:32,700
It can also be a boolean value.

10
00:00:32,700 --> 00:00:44,130
So the data type can be either the same or they can be mixed the items in a list are ordered by the

11
00:00:44,340 --> 00:00:47,710
index and they're also changeable.

12
00:00:47,940 --> 00:00:55,890
When I say they're ordered by the index the index refers to the position of the elements in the list

13
00:00:56,310 --> 00:00:58,430
and also the elements can be changed.

14
00:00:58,440 --> 00:01:06,810
So you can have items in the list that you can later change list are created by using square brackets.

15
00:01:06,810 --> 00:01:14,550
So you have the opening left square brackets which opens up the list and then the closing in right bracket

16
00:01:15,000 --> 00:01:19,500
which closes the list and then you can have items in the list.

17
00:01:19,530 --> 00:01:25,740
You can also have an empty list just with square brackets and then nothing inside the list which you

18
00:01:25,740 --> 00:01:28,540
can populate at a later time.

19
00:01:28,740 --> 00:01:36,360
The items in a list can be accessed by the index.

20
00:01:36,360 --> 00:01:39,010
The index refers to the position.

21
00:01:39,090 --> 00:01:49,020
So if you have a list that contains five items of values the very first item will have an index or position

22
00:01:49,020 --> 00:01:50,280
of zero.

23
00:01:50,310 --> 00:01:59,490
The second item will have an index of position of 1 and so on each item in the list has to be separated

24
00:01:59,640 --> 00:02:01,060
by commas.

25
00:02:01,230 --> 00:02:07,800
So you separate the values in the list with a comma a list is very useful.

26
00:02:07,800 --> 00:02:14,950
It allows you to store multiple values in one container or object.

27
00:02:15,030 --> 00:02:23,670
So that is it for this video in this video I gave you a quick introduction to what list are in Python.

28
00:02:23,670 --> 00:02:24,960
Thanks for watching.

29
00:02:24,960 --> 00:02:25,700
Bye for now.
