1 00:00:01,880 --> 00:00:07,730 As far as data types are concerned we have so far mentioned integers strings and folks know you are 2 00:00:07,730 --> 00:00:14,060 going to learn to other data types that are least and topples both police and toppled are often referred 3 00:00:14,060 --> 00:00:18,940 to as sequences because they are sequences of objects. 4 00:00:18,950 --> 00:00:23,140 Let's start with just sort of the most important between the two. 5 00:00:23,360 --> 00:00:25,080 So let's start talking about this. 6 00:00:25,100 --> 00:00:27,860 Well this is a sequence of objects. 7 00:00:28,100 --> 00:00:33,660 These objects can be numbers streams files and many other data types. 8 00:00:33,680 --> 00:00:35,390 Let's create a list of integers. 9 00:00:35,690 --> 00:00:38,390 I'm going to call my list for a list. 10 00:00:40,290 --> 00:00:45,290 And add three digits in the list. 11 00:00:45,330 --> 00:00:47,610 Let's quickly see what we got. 12 00:00:47,640 --> 00:00:49,240 So it's all the softening digits. 13 00:00:49,440 --> 00:00:54,140 Now let each value of a list is called the least item. 14 00:00:54,410 --> 00:01:00,490 Are excessively use when automatically performing multiple actions or iterating if you like. 15 00:01:00,630 --> 00:01:05,880 If you want to add more items to Oly's you can use the append method. 16 00:01:06,180 --> 00:01:11,470 So a painless Luis of that adds a new element at the end of the list. 17 00:01:11,610 --> 00:01:16,560 We use the dot notation to apply a method to an object. 18 00:01:16,560 --> 00:01:23,430 Now all these are indexed meaning that every element of A list every item of the list has a certain 19 00:01:23,490 --> 00:01:25,770 index starting from zero. 20 00:01:25,770 --> 00:01:30,970 So for all these 2015 holds an index of zero. 21 00:01:31,230 --> 00:01:41,700 2016 has an index of 1 and 2017 has an index of two indexes are useful when we want to say certain items 22 00:01:41,700 --> 00:01:42,600 of a list. 23 00:01:42,630 --> 00:01:48,420 For instance if we want the second element we call the element with the index one. 24 00:01:48,640 --> 00:01:57,130 We arrive at least name and the index of the item we want to call the side square brackets and we get 25 00:01:57,250 --> 00:01:59,890 the second item. 26 00:01:59,890 --> 00:02:03,460 This item behaves just like an independent object. 27 00:02:03,550 --> 00:02:09,610 For example in this case we have an integer as you see now. 28 00:02:09,620 --> 00:02:16,790 So with that we were able to modify all list and we did that by having an item at the end of our list. 29 00:02:16,850 --> 00:02:24,830 Sometimes you don't want your list to be modified for some reason and in such cases we use tables to 30 00:02:24,860 --> 00:02:33,260 create a table just use the syntax so to declare these we use square brackets for tables we use drawn 31 00:02:33,260 --> 00:02:34,250 brackets. 32 00:02:34,250 --> 00:02:40,880 It is rare to use tables but in case you want your series to be immutable doubles are always there for 33 00:02:40,880 --> 00:02:41,680 you. 34 00:02:41,780 --> 00:02:47,230 So you just learn what lease tables are and more data types in the next lecture.