WEBVTT 00:00.700 --> 00:05.120 You guys will come back when you lecture in this next year let us talk about for you. 00:05.440 --> 00:12.530 So follow up is useful do it through all the elements of a sequence so sequence like string less top 00:12.550 --> 00:14.560 down range and additionally. 00:14.830 --> 00:23.170 So to iterate over the items or elements inside this sequence is like list Dobber we use for new and 00:23.170 --> 00:27.650 before understanding what form do we need to understand about in. 00:27.940 --> 00:31.600 So what is enqueue or liberty as an example. 00:31.600 --> 00:33.330 So you will become pretty well. 00:33.580 --> 00:40.180 So whenever I have a sequence like list and if I want to check that a particular element is inside that 00:40.180 --> 00:42.500 list I can use in. 00:42.810 --> 00:46.870 So if I bring two in it that means two. 00:46.930 --> 00:50.330 Is that element in is a key word. 00:50.410 --> 00:52.240 And is my list. 00:52.240 --> 00:55.170 So two in it means I'm checking that. 00:55.390 --> 01:04.330 If this item that is too is inside my list and as desperate as true that means to is inside it. 01:04.480 --> 01:09.030 And if desperateness voice that means to is not included. 01:09.250 --> 01:11.760 So let me run the script. 01:12.040 --> 01:14.330 Now you can check that I'm getting are. 01:14.410 --> 01:18.400 That means this particular item is inside my list. 01:18.400 --> 01:20.640 Let me try this out with my stream. 01:20.690 --> 01:28.410 See if I check this is in my string that D but I need to remember that it is a string. 01:28.570 --> 01:32.590 So I need to I don't put it in and let me in on this one. 01:34.000 --> 01:42.500 So I get a clue and it's here I tried to do some other alphabet maybe the let me try again. 01:42.810 --> 01:47.690 See I got of course that means D is not inside my string shiver. 01:47.970 --> 01:50.530 Now I hope you understand about it. 01:50.790 --> 01:56.090 Let's get back to our form 2 and try to execute a small program. 01:56.090 --> 02:00.960 So if I use for ending I need use of variable. 02:01.080 --> 02:02.550 I been digging I. 02:02.810 --> 02:08.740 And then I need to use in and then I need to parse the sequence from which I need to read. 02:08.910 --> 02:11.970 So for a while I will be taking my list that is. 02:12.210 --> 02:13.580 And this is my condition. 02:13.590 --> 02:16.380 Now I knew the use of all of them. 02:16.410 --> 02:18.880 Now I am in my indentation block. 02:18.900 --> 02:23.330 That means it will work on each and every element of it. 02:23.370 --> 02:24.630 That is my list. 02:24.810 --> 02:27.080 And then I need to do something with that. 02:27.360 --> 02:29.220 So let me bring that. 02:29.500 --> 02:31.450 To do simple example. 02:31.590 --> 02:37.910 Now ahead I'm taking very well I bet it takes are the elements that are present in a second. 02:38.040 --> 02:41.470 There are six element that is 0 1 2 3 4 5. 02:41.520 --> 02:44.620 That means the first element I really need is zero. 02:44.700 --> 02:46.440 That means zero will be printed. 02:46.550 --> 02:47.770 1 0 is printed. 02:47.780 --> 02:53.660 It will go back to my direction Lou and then print the second element that is one then one is printed 02:53.680 --> 02:55.360 it will go back to my iteration. 02:55.410 --> 03:01.530 And then print the third element that is true and keep calling that now to spend this small program 03:01.590 --> 03:02.970 and check up on. 03:03.360 --> 03:09.300 So you can see in my output I have a good day to all the elements that are present in my list and printed 03:09.300 --> 03:10.170 them. 03:10.170 --> 03:15.950 So this was the basic thing to make you understand the most fun in the next little display it all the 03:15.960 --> 03:18.890 sequences like let's say string. 03:19.050 --> 03:21.540 And most importantly dictionaries.