WEBVTT 00:02.350 --> 00:08.710 As one of the most basic functions of programming loops are the most important part of any programming 00:08.710 --> 00:09.120 language. 00:10.200 --> 00:17.980 So let's look at the loops available in that first we'll see. 00:17.980 --> 00:26.750 While for the while loop is used to execute the statements as long as the conditions is true 00:31.770 --> 00:38.340 while i is less than 10 00:41.580 --> 00:57.020 ripped by AI plus people to 1 so most of all notice the indentation it is done by I.D.. 00:57.100 --> 01:10.530 So secondly this new will execute the statements as long as the value AI is less than 10 so let's say 01:10.590 --> 01:11.280 this program 01:19.480 --> 01:19.860 while 01:29.090 --> 01:34.590 this program 3 0 2 9 01:39.610 --> 01:49.060 let's write another program to find out the numbers green one to 20 that are divisible by 3 so to do 01:49.060 --> 02:00.480 that we can say while pi is 1 pi is less than or equal to 20 02:03.110 --> 02:04.640 then we can see if 02:09.050 --> 02:18.400 a low 3 equals equals zero. 02:19.150 --> 02:19.390 I 02:24.840 --> 02:30.250 I lost people to move this to 02:33.570 --> 02:39.630 see for a variable. 02:39.680 --> 02:46.140 These are the numbers that are divisible by 3 from 1 2 3. 02:50.240 --> 02:56.250 So this was while loop next will see all.