WEBVTT 00:00.770 --> 00:05.110 Not in this lecture let us use all the sequences and iterate over them. 00:05.150 --> 00:08.060 So the first one is let's which we have already people. 00:08.090 --> 00:15.260 So if I'm using for i in it that means I'm treating for all the elements inside of my list and then 00:15.260 --> 00:18.730 this point of time I'm having six Elliman in my list. 00:18.830 --> 00:25.320 That means I'm going for 6 edition that will be six sloop's symbol before it might open. 00:25.420 --> 00:26.290 So I'm very big. 00:26.300 --> 00:29.400 Be here and try to run this program. 00:29.660 --> 00:31.970 You can see I got the same result. 00:32.040 --> 00:36.080 Let me clear this up and try to see. 00:36.140 --> 00:37.960 That means what I said. 00:38.720 --> 00:40.090 I never planned this. 00:40.100 --> 00:42.690 You can tell he's still got the same result. 00:42.890 --> 00:45.630 Let me clear this out and try to think straight. 00:45.650 --> 00:46.920 That is D. 00:47.420 --> 00:49.090 Let me run this one. 00:49.190 --> 00:54.380 Now you can see it has a credit to all the elements all the items in my string. 00:54.380 --> 00:59.820 That is all look at actors and then render them separately according to our command. 01:00.110 --> 01:05.310 So let me take this out and now talk about the most important thing that is the. 01:05.510 --> 01:11.210 So if I e even try to run the sim Come on you can see the name and age. 01:11.270 --> 01:19.740 So whenever I tried to print or read or my digitally it will only read to my key values. 01:19.790 --> 01:22.800 That means I just got my name and age. 01:22.820 --> 01:29.030 These two are my key values and if I want to be great for any specific time line I just want to trade 01:29.090 --> 01:37.160 two values so I can use dot and then values like this one and try to run this again. 01:37.250 --> 01:39.450 You can say I got on lvalues. 01:39.700 --> 01:49.340 And 22 and if I want only keys that is by default and I can also use keys if I run this one again you 01:49.340 --> 01:54.290 can see I just me any and if I'm on board I don't. 01:54.290 --> 02:02.170 That means I can use items but there is a problem that I'm using items that means it will get key and 02:02.210 --> 02:03.330 value boot. 02:03.350 --> 02:10.030 So I need to use to be the one that stole my keys and the other one will store my values. 02:10.160 --> 02:11.700 I will be using x and y. 02:11.720 --> 02:14.150 You can use the value as variable. 02:14.240 --> 02:15.880 You can use anything. 02:15.890 --> 02:23.960 So now what I'm doing is X and my X will take my kid that is them and dig my value that I'm looking 02:24.000 --> 02:27.530 for my Additionally in a manner that you will understand easily. 02:27.580 --> 02:30.320 So Additionally it is usually shaved like this. 02:30.320 --> 02:37.330 So it is more comfortable to read if you're from javascript you will be live in this scheme. 02:37.340 --> 02:40.980 Now what I was doing is I was creating from in value. 02:41.120 --> 02:43.250 So now I need to print key. 02:43.370 --> 02:50.490 That is my X and maybe leave a space so I can use and then print my value. 02:50.720 --> 02:54.860 That is done let me clear this up and run my script. 02:54.890 --> 02:59.840 So I got a common error that I cannot use this concatenation. 02:59.840 --> 03:04.400 That is my plus symbol because in my value pair I'm having. 03:04.460 --> 03:06.170 And that is what you do. 03:06.200 --> 03:11.610 So I will be using a comma but it was intenser to make you understand that. 03:11.610 --> 03:15.740 So in my first loop there was no error so it printed name and travel. 03:15.740 --> 03:22.860 That is my key and value and in my second loop that is in my second iteration I got this error. 03:23.120 --> 03:25.370 So let me clear this up. 03:25.400 --> 03:34.400 Our common sort of plus symbol and on the screen and the you can say I got my key and then again. 03:34.490 --> 03:38.230 And then you say it was quite easy and understandable. 03:38.540 --> 03:43.700 The next thing we need to understand is range which is one of the most important thing Lichtenstein's 03:43.690 --> 03:45.460 is up and right from scratch. 03:45.650 --> 03:50.080 So for ex in no I need to use range. 03:50.120 --> 03:56.120 So we already know that training can student a lot from one point to another point and it will start 03:56.180 --> 03:57.900 according to our requirement. 03:57.900 --> 04:03.680 That is if I want to start with one I can do that and it will end according to our requirements and 04:03.680 --> 04:05.880 we can also find the gaps. 04:05.900 --> 04:07.970 So what we do is strange. 04:08.180 --> 04:12.060 And then I need to pause from where I need to start. 04:12.230 --> 04:14.310 What point I need to go that direction. 04:14.390 --> 04:21.910 And then I need to mention the gap just by default is 1 and you do something simple and just print that. 04:22.310 --> 04:26.380 So if I do that you can see I got a result from 1 2 3 and 4. 04:26.570 --> 04:32.060 That means starting from 1 and then printed out is full range is really important. 04:32.060 --> 04:40.720 I can also try it then maybe and then can use a gap of two and if I run the US again you can see I are 04:40.820 --> 04:42.300 on the order numbers. 04:42.560 --> 04:48.050 We can play a lot with the range and when be doing that for a short while doing some exercise. 04:48.320 --> 04:54.650 So my major in with dyslexia was to make you understand about the concept of forward to now what we 04:54.650 --> 04:58.350 can do is we can also use is for this true. 04:58.610 --> 05:05.690 So if I use as an up reinstatement of all look completed and never on this one. 05:05.870 --> 05:09.810 You can see the results from 1 to 9 and one started preaching is done. 05:09.860 --> 05:14.650 I was kept inside my insue and then loop completed is printed. 05:14.840 --> 05:21.080 So that was quite easy stuff and I hope you understand about four new in the next lecture. 05:21.080 --> 05:27.590 Now let's talk about some important keywords about how to stop these loops like what's a for loop is 05:27.590 --> 05:28.410 a start. 05:28.580 --> 05:34.610 There should be some condition there our program might be satisfied and we don't need to perform for 05:34.610 --> 05:41.570 the or maybe our Wildblue should stop after a certain condition or we might need to add some quality 05:41.570 --> 05:42.500 test. 05:42.590 --> 05:47.360 So at that point of time we can use two or three key words which are really important. 05:47.360 --> 05:48.270 One is free. 05:48.410 --> 05:51.550 One is continue in the next lecture we'll be talking about them.