1 00:00:00,340 --> 00:00:03,520 Right now, it is time for the for the while loop. 2 00:00:03,540 --> 00:00:07,830 OK, so actually the wire loop is somehow different, but they are the same. 3 00:00:08,880 --> 00:00:10,170 I equals zero. 4 00:00:10,210 --> 00:00:16,650 Let's start from zero, and I would watch while here and one eye is less than five. 5 00:00:16,810 --> 00:00:17,270 OK. 6 00:00:18,570 --> 00:00:21,950 Then, yeah, sorry, I forget to put the indentation here. 7 00:00:23,740 --> 00:00:30,070 The cordon here and indentation here, so I will bring inside it, so let's bring I. 8 00:00:32,220 --> 00:00:41,530 And we want to add the venue or we will have an infinite loop, infinite loop means that we will start. 9 00:00:41,580 --> 00:00:45,350 We will still be in the same loop over and over. 10 00:00:45,690 --> 00:00:50,280 But by doing that, you make sure that everything will stop eventually. 11 00:00:50,380 --> 00:00:55,680 OK, so I will keep increasing the value until it is five. 12 00:00:55,680 --> 00:00:58,050 So five less than five folds. 13 00:00:58,380 --> 00:01:01,060 I will get out from this wire loop. 14 00:01:01,080 --> 00:01:03,660 OK, now let's run this and test it out. 15 00:01:03,670 --> 00:01:04,920 Actually it's better. 16 00:01:06,080 --> 00:01:13,450 Yeah, you can see zero, one, two, three, four, and when it is reaching five, then it will go. 17 00:01:13,460 --> 00:01:17,110 So it is actually let's have a look here. 18 00:01:17,300 --> 00:01:19,130 So we will start from the. 19 00:01:20,410 --> 00:01:27,580 Now, zero less than five years to I would print zero and I would add zero equals zero plus one. 20 00:01:27,780 --> 00:01:30,790 Now the venue value for I would be one. 21 00:01:31,000 --> 00:01:34,300 OK, now again, what is this then? 22 00:01:34,300 --> 00:01:34,690 Five. 23 00:01:34,840 --> 00:01:35,830 Yeah, this one. 24 00:01:36,010 --> 00:01:36,820 One last one. 25 00:01:37,000 --> 00:01:40,500 And over and over until we reach fup for less than five. 26 00:01:40,510 --> 00:01:40,930 Yes. 27 00:01:41,350 --> 00:01:44,880 Print four and four equals four plus one. 28 00:01:44,920 --> 00:01:47,940 So which means the new value for I would be five five. 29 00:01:48,160 --> 00:01:50,200 Now let's return and check that condition. 30 00:01:50,470 --> 00:01:51,610 Five less than five. 31 00:01:51,640 --> 00:01:56,830 No false when this means that I will go ahead and I would quit it. 32 00:01:57,200 --> 00:01:58,930 OK, so far so good.