Hello and welcome to this video.
In this video I'm going to introduce you to what list are in Python.
What is a list.
A list is basically what the name says.
It's a list.
So it's a collection of data which can be of mixed type.
What that means is that the content of the lists can be a string which is a text.
It can be a number.
It can also be a boolean value.
So the data type can be either the same or they can be mixed the items in a list are ordered by the
index and they're also changeable.
When I say they're ordered by the index the index refers to the position of the elements in the list
and also the elements can be changed.
So you can have items in the list that you can later change list are created by using square brackets.
So you have the opening left square brackets which opens up the list and then the closing in right bracket
which closes the list and then you can have items in the list.
You can also have an empty list just with square brackets and then nothing inside the list which you
can populate at a later time.
The items in a list can be accessed by the index.
The index refers to the position.
So if you have a list that contains five items of values the very first item will have an index or position
of zero.
The second item will have an index of position of 1 and so on each item in the list has to be separated
by commas.
So you separate the values in the list with a comma a list is very useful.
It allows you to store multiple values in one container or object.
So that is it for this video in this video I gave you a quick introduction to what list are in Python.
Thanks for watching.
Bye for now.