1 00:00:00,660 --> 00:00:08,010 So now let's talk about the loops, so loops are very helpful in automating the computer process. 2 00:00:08,280 --> 00:00:15,090 So suppose if you want to print out the numbers, you want to write one right to write to, you need 3 00:00:15,090 --> 00:00:16,740 to write 100. 4 00:00:16,750 --> 00:00:19,410 So it is a very complex task. 5 00:00:19,420 --> 00:00:25,750 So you can just loop all the numbers, one 200 and you can print the number each time. 6 00:00:25,830 --> 00:00:27,510 So that is what the loops. 7 00:00:27,690 --> 00:00:34,020 You can also loop over so many items, also as many items as you can. 8 00:00:34,530 --> 00:00:36,900 So first we want to see is. 9 00:00:37,560 --> 00:00:41,320 So the first syntaxes for you need brackets. 10 00:00:42,420 --> 00:00:45,990 So in these records, we need to define three expressions. 11 00:00:46,230 --> 00:00:49,230 First expression, use initialization expression. 12 00:00:49,230 --> 00:00:50,770 That is, I use close to zero. 13 00:00:50,790 --> 00:00:57,870 So from a starting point and ending point, so a starting point is defined by the first expression and 14 00:00:57,870 --> 00:00:59,170 where to start from zero. 15 00:00:59,190 --> 00:01:00,390 Number one number. 16 00:01:00,900 --> 00:01:05,820 And they don't need to put the semicolon and you need to specify the limit. 17 00:01:05,850 --> 00:01:11,170 So I want to say print one hundred numbers so that 20 numbers. 18 00:01:11,460 --> 00:01:18,690 So I need to say the expression so that this loop executes on this expression becomes false. 19 00:01:20,040 --> 00:01:29,040 So now I want to print one, two three zero two county values so I can say, uh, I less than or equal 20 00:01:29,040 --> 00:01:29,910 to compete. 21 00:01:32,150 --> 00:01:34,020 And then we need to sit down. 22 00:01:34,710 --> 00:01:38,910 I press Prasow prosperous in the sense it's incrementing by one. 23 00:01:38,940 --> 00:01:46,740 So this is the I think the word operator and it will increase the value by one and then say open brackets, 24 00:01:46,980 --> 00:01:49,610 open presses and we need to see. 25 00:01:49,760 --> 00:01:50,280 Right. 26 00:01:51,930 --> 00:01:54,930 I am now closed up, but it. 27 00:01:56,100 --> 00:02:01,200 So here what we're doing is we are giving the three expressions and do this for the first one is initialized 28 00:02:02,070 --> 00:02:06,100 initialization where you want to start from zero onwards. 29 00:02:06,140 --> 00:02:15,480 So where you want to enter that is until the last ten or twenty up to then repeat the slope and we are 30 00:02:15,480 --> 00:02:18,660 incrementing that I value by one. 31 00:02:19,020 --> 00:02:25,680 So on the first iteration, ivory's zero and then it is compared with this expression I just done, 32 00:02:25,680 --> 00:02:26,610 I recorded twenty. 33 00:02:27,060 --> 00:02:28,170 Yes, true. 34 00:02:28,170 --> 00:02:33,000 Then this uh condition will execute, this command will execute. 35 00:02:33,360 --> 00:02:38,370 And then uh this is far from the increment of this. 36 00:02:38,370 --> 00:02:46,520 Uh dhara I will whenever one loop has been executed this operation will be executed. 37 00:02:46,530 --> 00:02:47,730 So in the same way. 38 00:02:47,770 --> 00:02:49,200 Zero one, two, three, four and two. 39 00:02:49,200 --> 00:02:52,140 Then up to twenty two point thirty one. 40 00:02:52,170 --> 00:02:53,970 This exhibition becomes false. 41 00:02:53,970 --> 00:02:58,520 Then the loop does not uh, cutting it will just exist right here. 42 00:02:58,680 --> 00:03:00,330 So let's go and run this one. 43 00:03:01,470 --> 00:03:03,480 So as you can see, we have got the values zero. 44 00:03:03,480 --> 00:03:04,910 One, two, three, four, twenty. 45 00:03:05,970 --> 00:03:08,100 So this is the basic for Farooque. 46 00:03:08,610 --> 00:03:15,540 Uh, I will also show you the wide loop while you need to see the expression. 47 00:03:16,140 --> 00:03:17,260 But it is very simple. 48 00:03:17,520 --> 00:03:20,250 Wait until the expression becomes to this one. 49 00:03:20,920 --> 00:03:34,590 So dollar I equals to, uh, I that's, uh, less than less than 30. 50 00:03:37,000 --> 00:03:40,030 And we to right now. 51 00:03:40,040 --> 00:03:47,920 All right, so let's go on this so this you know, this group get a dictator in for a treat because 52 00:03:48,670 --> 00:03:54,570 after this group started this group, I hope you have understood the group that said our eye is equal 53 00:03:54,700 --> 00:03:55,450 to 20. 54 00:03:56,830 --> 00:03:59,830 So I value is 20 and we are taking weather. 55 00:03:59,830 --> 00:04:01,730 I understand that we are not. 56 00:04:01,750 --> 00:04:04,010 So if it's true, we need to execute this one. 57 00:04:04,270 --> 00:04:05,840 So 20 rather than 30. 58 00:04:05,890 --> 00:04:09,470 So this expression gets a do gooder, right? 59 00:04:09,760 --> 00:04:18,310 We are pretty naive, but we are not implementing it because, uh, because of not implementing this, 60 00:04:18,910 --> 00:04:21,910 uh, wild altitude's fervor that's going around on this. 61 00:04:22,990 --> 00:04:26,020 And you can see it's a degree in forestry. 62 00:04:26,680 --> 00:04:27,820 So let's stop this one. 63 00:04:28,150 --> 00:04:36,010 What we want to do is we need to implement this because, uh, it is for every iteration this condition 64 00:04:36,010 --> 00:04:36,830 is being taken. 65 00:04:36,850 --> 00:04:39,010 So that's all we need to include this one. 66 00:04:40,090 --> 00:04:41,590 So now let's go around this. 67 00:04:43,800 --> 00:04:46,090 As you can see, the are from continue to. 68 00:04:47,070 --> 00:04:54,150 That's because this is a core group behind this one and the condition has been felt when it is starting. 69 00:04:56,290 --> 00:05:06,160 So this is a while loop and and the rupee's we want to do is for, look, if, uh, if rupee's, uh, 70 00:05:06,190 --> 00:05:11,200 use used for conditional statements, if you want to check whether the condition is true or false, 71 00:05:11,230 --> 00:05:17,690 when the condition is true, then you could some call whenever the condition is forcing you, uh, other 72 00:05:17,740 --> 00:05:22,030 call so that that is equal to 20. 73 00:05:27,000 --> 00:05:31,650 So if you need to open brackets, if, Rajveer. 74 00:05:35,000 --> 00:05:38,710 I less then I know what to say. 75 00:05:39,400 --> 00:05:39,760 Oh. 76 00:05:43,350 --> 00:05:44,910 UAE resident. 77 00:05:49,090 --> 00:05:55,180 So this is one condition, right, if this condition becomes true, then this court will execute, otherwise 78 00:05:55,300 --> 00:05:57,580 it will just simply ignore this statement. 79 00:05:57,970 --> 00:06:05,440 So since then, uh, sorry, 30 cents is less than 30. 80 00:06:05,520 --> 00:06:07,560 Now, this could get a good result on this. 81 00:06:08,230 --> 00:06:14,380 And as you can see, we got this is less than an hour, but now you can also check multiple conditions 82 00:06:14,560 --> 00:06:15,940 using this elusive. 83 00:06:18,990 --> 00:06:19,780 Yes, if. 84 00:06:21,220 --> 00:06:32,640 You want to specify whether target equals two can be so whenever the evalu is equal to exactly consistently, 85 00:06:32,670 --> 00:06:34,350 then this condition get to the good. 86 00:06:35,740 --> 00:06:37,200 Sorry, this expression. 87 00:06:45,780 --> 00:06:54,840 So first, this condition will be taken, whether it is western or Western, that they are not, since 88 00:06:54,840 --> 00:06:56,250 it's true, it's it's good. 89 00:06:56,580 --> 00:06:58,190 And this will be ignored. 90 00:07:01,070 --> 00:07:07,320 As you can see, if he's here 10, so only one in gets a do gooder. 91 00:07:09,070 --> 00:07:15,500 Because it's a heart condition between these conditions, first 24, which occurred either whether it 92 00:07:15,520 --> 00:07:22,030 is less than 10 or not, so it falls right then this then only this condition, which actually equals 93 00:07:22,120 --> 00:07:22,600 20. 94 00:07:23,020 --> 00:07:26,290 So in order to get around, this one can see years equals to 20. 95 00:07:28,110 --> 00:07:36,960 So we can also say another one year, if nothing happens, uh, we can just, uh, sir. 96 00:07:38,370 --> 00:07:39,310 Yeah, he's great than. 97 00:07:43,560 --> 00:07:45,190 So he's Crewdson. 98 00:07:48,610 --> 00:07:51,930 So let's go to change the year to 22. 99 00:07:52,800 --> 00:07:59,580 Now, this condition will be tackled first, Evariste 22, 22, Sternau less than 10. 100 00:08:00,040 --> 00:08:01,810 So it's us. 101 00:08:02,050 --> 00:08:04,140 So this will not be executed. 102 00:08:04,150 --> 00:08:11,500 And then this condition, which is equal to 20 falls, then this condition will be skipped. 103 00:08:11,770 --> 00:08:18,870 And then, uh, yes, if these two conditions are false, then this statement will automatically. 104 00:08:19,420 --> 00:08:22,510 Now you can see it's clear that they will be put into. 105 00:08:24,910 --> 00:08:27,670 So this is the earth as a fruit. 106 00:08:28,670 --> 00:08:31,730 And you need to right that if look to. 107 00:08:32,850 --> 00:08:35,970 In order to make their troop additions. 108 00:08:39,010 --> 00:08:45,730 You cannot let me into the room without the if so, this is the basics about the if all else fails. 109 00:08:46,090 --> 00:08:49,810 So basically you can program anything with using the troops. 110 00:08:50,140 --> 00:08:56,530 But this person is made especially for Windows administrator automation in mind. 111 00:08:56,530 --> 00:09:02,430 So that's why we will deal with the Windows coverage and much more. 112 00:09:03,130 --> 00:09:04,150 So that's good. 113 00:09:04,480 --> 00:09:07,990 Uh, comes from fighting. 114 00:09:08,850 --> 00:09:11,390 I should tell another one that is Fritz. 115 00:09:12,770 --> 00:09:22,280 So far, it will be like an area in Britain we have seen the far I mean the least you are going to try 116 00:09:22,280 --> 00:09:30,880 to order in the same way it is similar to a Farrukh, but here it will deal with the area I don't need 117 00:09:30,890 --> 00:09:34,280 to say, for dolerite in. 118 00:09:34,940 --> 00:09:37,730 Also, what areas will cover letters? 119 00:09:37,970 --> 00:09:39,830 Let's get process. 120 00:09:47,800 --> 00:09:50,670 So frustrate me, show you this. 121 00:09:52,400 --> 00:09:55,260 That process itself, Dorottya. 122 00:10:03,920 --> 00:10:07,140 Said all together is equal to get process. 123 00:10:07,160 --> 00:10:08,090 It's a Dorottya. 124 00:10:10,390 --> 00:10:19,270 Our footprint print the way you are, the process are running on our system and you can access these 125 00:10:19,270 --> 00:10:25,260 ideas and names and parts using this, uh, object oriented pieces. 126 00:10:25,600 --> 00:10:33,300 So far, I in this process means so this iterator is going to loop over. 127 00:10:33,310 --> 00:10:35,320 These are the values. 128 00:10:35,710 --> 00:10:42,550 First, it will support this Akrotiri process and then autopsy of our purposes and etc. It will look 129 00:10:42,550 --> 00:10:43,890 all over this process. 130 00:10:43,900 --> 00:10:46,330 And now you can do whatever you want. 131 00:10:47,020 --> 00:10:51,010 You can see right there I heard that. 132 00:10:51,310 --> 00:10:52,600 I can just say. 133 00:11:04,400 --> 00:11:09,130 So, again, just to say no, no, if I to do this, I will get out the process names. 134 00:11:10,130 --> 00:11:15,590 So as you can see, we are not only the process names and you can also print that, but. 135 00:11:17,530 --> 00:11:18,850 Dolerite not, but. 136 00:11:21,990 --> 00:11:23,150 And you can also print the. 137 00:11:23,850 --> 00:11:26,300 So let's just put into this one. 138 00:11:27,870 --> 00:11:37,590 So now, as you can see, we have got the application and about 330 and the to issue her application 139 00:11:37,590 --> 00:11:45,060 and the participation that you do is you just so as you can see here, there are positives and part 140 00:11:45,060 --> 00:11:46,020 of that process. 141 00:11:49,260 --> 00:11:51,240 So you can also print deadly. 142 00:11:52,870 --> 00:11:54,640 Guards opened the Hindoos as well. 143 00:11:55,700 --> 00:11:57,110 So as you can see, we have got the idea. 144 00:11:57,290 --> 00:12:02,000 So this is very useful for us to task. 145 00:12:02,300 --> 00:12:08,810 Whenever you want to search for passengers and the rallies and kill them, you can also use the kill 146 00:12:08,810 --> 00:12:11,010 process to kill the process. 147 00:12:11,420 --> 00:12:17,870 So in this way, these groups are very helpful in trading all over these various and checking whether 148 00:12:18,530 --> 00:12:21,750 these I.D. matches this one, then you want to do something. 149 00:12:21,770 --> 00:12:27,920 So in those cases, they do so very much so that for this area, I hope you understood the loop's.