‫Now let's move on to two apples to apples, another data type.
‫Sorted by Python.
‫So balls are just like list, except that they cannot be modified once created.
‫That's why we call them tables.
‫So tables are tables and a list is table.
‫So to assign a table, we use parenthesis.
‫So for lists, we use a square record.
‫For tables, we use parenthesis.
‫So if we write the one.
‫Equal to parenthesis.
‫One, comma two.
‫So if you see, when we were outputting the lists, there were a square record at the end and at the
‫start.
‫But for the tuples we have parenthesis and we cannot change the values of this element's.
‫So just to try, if we want to change the value of this element, we can write even.
‫Then square record zero equal to five.
‫Since this is a table.
‫We we'll get an error while running this so you can see the error is the object does not support item
‫assignment.
‫You cannot change the value of table once created to get the type of this table type.
‫Even you can see the type is table.
‫There are very limited use cases of temples, and we will hardly use temples in our analysis.
‫So let's move on to the next data type, which is dictionary.
‫Dictionaries are also like lists, except that each element is a key value pair and the syntax for assigning
‫dictionaries is using brackets in the list.
‫We use a square record and we use parentheses in dictionaries.
‫We will use brackets.
‫So in the list.
‫There are indexes starting from zero one, two, three, four.
‫Here you can say that you are assigning this indexes on your own.
‫So for each element you have to assign an index which we call a key.
‫And the element is called this value.
‫That's why we define dictionaries as a collection of key value pairs.
‫So to assign the variable, be one.
‫Which is a dictionary will write equal to curly brackets.
‫Now here.
‫First we have to write the key, key one and then write colon.
‫And the value of this key, which is one.
‫Goma due to.
‫So in the list there were indexes zero one, two, three, four.
‫This key one key two key three are just like indexes.
‫See this?
‫But I do want to run this.
‫You can see.
‫And this.
‫We were only getting the values.
‫And here we are getting first the keys and then the value.
‫So if you want, you can see the type of this D one, right?
‫Type B one.
‫The typist dictionary.
‫Now, if I want to grab the first value, I will write one.
‫And in a square bracket.
‫I will write even.
‫If we run this.
‫You can see.
‫For the key, given we have a value of one in the list we were using directly using the indexes such
‫as zero one, two, three, four.
‫In dictionaries.
‫We have to use these keys to get the value of that pair.
‫So if I tried to write like this one square record zero, that is the first element.
‫I will get an error.
‫I always have to refer to this value using the key of this value.
‫So Python also supports conditional statements such as if ls or else if, and it also supports loops
‫such as for loop and wide loop.
‫We are not going to discuss this here.
‫If you want, you can explore this on your own.
‫If needed.
‫We will discuss it in our upcoming lectures.