As far as data types are concerned we have so far mentioned integers strings and folks know you are
going to learn to other data types that are least and topples both police and toppled are often referred
to as sequences because they are sequences of objects.
Let's start with just sort of the most important between the two.
So let's start talking about this.
Well this is a sequence of objects.
These objects can be numbers streams files and many other data types.
Let's create a list of integers.
I'm going to call my list for a list.
And add three digits in the list.
Let's quickly see what we got.
So it's all the softening digits.
Now let each value of a list is called the least item.
Are excessively use when automatically performing multiple actions or iterating if you like.
If you want to add more items to Oly's you can use the append method.
So a painless Luis of that adds a new element at the end of the list.
We use the dot notation to apply a method to an object.
Now all these are indexed meaning that every element of A list every item of the list has a certain
index starting from zero.
So for all these 2015 holds an index of zero.
2016 has an index of 1 and 2017 has an index of two indexes are useful when we want to say certain items
of a list.
For instance if we want the second element we call the element with the index one.
We arrive at least name and the index of the item we want to call the side square brackets and we get
the second item.
This item behaves just like an independent object.
For example in this case we have an integer as you see now.
So with that we were able to modify all list and we did that by having an item at the end of our list.
Sometimes you don't want your list to be modified for some reason and in such cases we use tables to
create a table just use the syntax so to declare these we use square brackets for tables we use drawn
brackets.
It is rare to use tables but in case you want your series to be immutable doubles are always there for
you.
So you just learn what lease tables are and more data types in the next lecture.