WEBVTT 00:00.600 --> 00:06.920 In this lecture when we're talking about so article there's a python sequence which we only know that 00:06.980 --> 00:13.520 it is used to store a group of elements seem likeliest doubles are similar to list but the main difference 00:13.580 --> 00:15.970 is doubles are immutable. 00:16.040 --> 00:22.340 Whereas if I talk about list they are order as well as mutable but double side order. 00:22.350 --> 00:23.940 But that is immutable. 00:24.110 --> 00:27.560 So we can modify the Neiman's awfullest whenever you want. 00:27.710 --> 00:35.900 And since double is immutable so we cannot perform operations like ebon insert remove ball player. 00:36.560 --> 00:39.610 That means we cannot insert elements inside table. 00:39.620 --> 00:45.660 We cannot remove elements we cannot hope elements and also we can delete elements of double. 00:45.920 --> 00:51.530 So that's a major difference between doubles and list the meaning that you need to remember is they 00:51.530 --> 00:52.610 are ordered. 00:53.310 --> 00:58.380 Let's start on the term so the meaning you'll befalling Dieudonne are examples. 00:58.410 --> 01:00.940 By now you already know how to create or. 01:01.210 --> 01:07.610 Select a variable the and in which I will be giving for five values. 01:07.770 --> 01:11.250 And then you can pass any type of element you can pass string. 01:11.250 --> 01:17.320 You can post in Dejah you can pass Flude stick a basic example and just past few numbers 01:21.850 --> 01:22.350 here. 01:22.400 --> 01:28.550 I have declared my table and if I print there you can see I got all the elements and if I try to use 01:28.550 --> 01:30.290 indexing on my table. 01:30.590 --> 01:36.620 So if I take your position I will be getting an answer of then the next thing I want to talk about is 01:36.890 --> 01:46.640 if I give an explanation which not exist had I if I pause 30 you see I got an error that it is index 01:46.690 --> 01:50.510 error and the index is out of range. 01:50.770 --> 01:52.860 So this is an important point. 01:53.020 --> 02:00.100 And what if I tried to insert a new element at a certain position where if I look at position and if 02:00.100 --> 02:08.330 I pass an element as 50 and you will get to type it or that double object does not support. 02:08.410 --> 02:10.960 I mean so we can not assign. 02:10.980 --> 02:14.070 I don't say to October what we can do a lot. 02:14.160 --> 02:17.620 We can try out different methods that are available for poker. 02:17.790 --> 02:19.710 But remember we cannot move. 02:19.750 --> 02:23.700 We cannot even be more clear a lot more thing. 02:23.700 --> 02:27.210 Let me use some methods that would be helpful for us. 02:27.210 --> 02:34.860 So if I use a common term in Boston that means number of game then is available in October. 02:34.980 --> 02:38.740 So if I print enter you can see I got a result of who I. 02:38.940 --> 02:44.860 Let me create a new table. 02:45.090 --> 02:51.860 Now this is a multivalued other in which I'm passing indigent stream flowed as well as a list. 02:51.870 --> 03:00.460 Now if I tried to count the value of now inside B-double you can see on getting a result of too. 03:00.480 --> 03:02.530 Now let's live in the function. 03:02.550 --> 03:07.450 What if I need to get the Linta part of on that simple just use Ilian function. 03:08.350 --> 03:16.270 And what if I need to concatenate two doubles a happening b i b What if I need to concatenate them since 03:16.270 --> 03:20.200 you know I cannot add new content in a single table. 03:20.380 --> 03:27.370 But what if I create a new table maybe c and then try to concatenate elements of it an element of B 03:27.880 --> 03:29.080 to create a new. 03:34.150 --> 03:35.900 So that I can do that. 03:35.920 --> 03:42.730 That means if I need to add two elements inside my interval maybe 10 20 and then I want to add 30 and 03:42.730 --> 03:43.330 40. 03:43.450 --> 03:46.740 But since is immutable I can not add them. 03:46.870 --> 03:53.910 So what does all the new elements that I want to add in my eatable I just add them inside my b. 03:53.950 --> 03:55.840 So that is 30 and 40. 03:55.900 --> 04:00.120 Now 100 is I concatenated them and now I have C.. 04:00.310 --> 04:04.940 Now the next thing I can do is I can just assign the value of c to my b. 04:04.960 --> 04:07.510 So why even have all the new values 04:10.290 --> 04:11.030 you see. 04:11.040 --> 04:12.790 That's how I can add new. 04:12.800 --> 04:19.140 I used to make up for but this is not the way that we have done with the list but the least we can do 04:19.180 --> 04:22.730 that does single Come on since double is immutable. 04:22.800 --> 04:24.780 This is just the other way around. 04:24.780 --> 04:27.380 Remember the polls usually carried the data. 04:27.390 --> 04:31.000 They should not be exited throughout the program or through all that. 04:31.010 --> 04:33.380 And that is why they are immutable. 04:33.540 --> 04:40.350 The next thing I want to talk about is Komatsu head if I create a new double maybe be and add an element 04:40.420 --> 04:42.010 as Hello. 04:42.090 --> 04:47.180 Now you can see whenever you find a single double you might see a coma. 04:47.370 --> 04:52.610 When we start working on some project you will solve a website like Stack Overflow. 04:52.740 --> 04:54.800 You also say safelight get out. 04:55.020 --> 05:01.750 And then if you see us also score which has only a single element in our table you will find this come. 05:02.100 --> 05:08.910 BALDWIN It's a conventional way to tell people that this is that upper and this Gaumont doesn't affect 05:08.990 --> 05:09.790 your mood. 05:10.080 --> 05:17.040 If you want to add a second element you can do that and you can also add a column arguing for one element. 05:17.040 --> 05:21.450 People usually write a single column or just to show that it's a double. 05:21.630 --> 05:27.360 Otherwise it is hard to understand if this is a table of people are trying to pass some values in a 05:27.360 --> 05:28.790 function or anything else. 05:28.940 --> 05:32.970 So in this coma help us to define a couple forcing the Lindemann. 05:33.300 --> 05:39.930 Now what if I try to multiply this by five if I bring my result what are you going to expect it would 05:39.950 --> 05:40.680 bring. 05:40.860 --> 05:45.080 Five times just double or one single double with five time. 05:45.090 --> 05:45.710 Hello. 05:45.900 --> 05:47.180 Let me bring that. 05:47.610 --> 05:51.300 You see a single table with five time as hell. 05:51.510 --> 05:54.640 Now there are some functions which I believe will in our table. 05:54.900 --> 06:01.180 So all these function and all these methods are used to perform important operations on our couple. 06:01.290 --> 06:10.230 So if I were home Max on my double you can see my table was in 2030 and for me I got the highest that 06:10.230 --> 06:20.030 is 40 and if I tried to use min you can see I got my the Google all 32 table with the help of the information 06:20.860 --> 06:23.700 after the leading if I tried to access my top. 06:24.260 --> 06:28.650 You can see I thought on the matter that this name it is not defined. 06:28.790 --> 06:35.630 So now this variable does not exist and there is no memory that is allocated for very wealthy. 06:35.700 --> 06:36.870 That's all for this lecture. 06:36.870 --> 06:39.430 Hope this was helpful in the next election. 06:39.430 --> 06:43.580 Let's talk about dictionaries which are really really really important. 06:43.680 --> 06:45.440 So see you in the next lecture.