1 00:00:11,690 --> 00:00:13,250 Hi, guys, how are you? 2 00:00:14,020 --> 00:00:21,770 I'm all right, so let's get down to business and let's try to resolve the assignments of methods right 3 00:00:21,770 --> 00:00:22,250 here. 4 00:00:22,690 --> 00:00:25,940 OK, so once you open your by chance, as always, great. 5 00:00:25,940 --> 00:00:30,680 And you file, you can call Python methods. 6 00:00:32,860 --> 00:00:33,610 Practice. 7 00:00:34,530 --> 00:00:37,860 Right, and then Mathis practice. 8 00:00:39,600 --> 00:00:45,160 And let's try to see how can we resolve these two parts of the use of the assignments. 9 00:00:45,180 --> 00:00:52,400 All right, so first of all, in part, you were asked to create a new method and call it sorting. 10 00:00:52,530 --> 00:00:52,920 Right. 11 00:00:53,400 --> 00:01:00,910 And the sorting variable, the sorting method should get arbitrary arguments. 12 00:01:00,930 --> 00:01:10,230 So this is mentioned by these staff specially, and then we should put languages list because it's going 13 00:01:10,230 --> 00:01:12,680 to receive programming languages. 14 00:01:12,690 --> 00:01:13,110 All right. 15 00:01:14,970 --> 00:01:21,280 And then inside the method, you first of all, let's go to the to this easy part. 16 00:01:21,300 --> 00:01:21,680 All right. 17 00:01:21,870 --> 00:01:26,580 So sorting should get three executions the first time. 18 00:01:26,790 --> 00:01:30,870 It should be Python, then it should be JavaScript. 19 00:01:32,180 --> 00:01:34,010 Then it should be C++. 20 00:01:35,750 --> 00:01:43,580 I'm not sure this is was the order, I think that the C++ execution was the last one mentioned. 21 00:01:47,820 --> 00:01:49,900 Oh, what's going on here? 22 00:01:50,370 --> 00:01:56,210 Oh, I'm confused, I forgot quotation marks here, and that's it. 23 00:01:57,420 --> 00:02:03,690 I'm not sure because I think that it should get the this execution should be the last one. 24 00:02:03,710 --> 00:02:06,650 But the order is not meant matter really much. 25 00:02:06,660 --> 00:02:07,010 All right. 26 00:02:07,470 --> 00:02:09,690 And then we had Python and Java. 27 00:02:13,370 --> 00:02:15,590 And we had something. 28 00:02:18,510 --> 00:02:19,830 Fight on ops. 29 00:02:21,360 --> 00:02:21,690 On. 30 00:02:24,160 --> 00:02:25,000 Java. 31 00:02:27,130 --> 00:02:28,360 And go, right. 32 00:02:29,200 --> 00:02:30,850 OK, so we're good. 33 00:02:31,030 --> 00:02:37,780 We have these three or three executions right here and now that's handle what will be the content of 34 00:02:37,780 --> 00:02:38,460 this method. 35 00:02:38,710 --> 00:02:45,490 So what you were asked to do in this in this method is basically to scan each item. 36 00:02:45,700 --> 00:02:55,420 OK, so one item would be language in language like that and then print out whether it's Java or not. 37 00:02:55,720 --> 00:02:57,220 OK, so if. 38 00:02:58,560 --> 00:02:59,550 Language. 39 00:03:00,990 --> 00:03:02,610 Equals equals Java. 40 00:03:04,600 --> 00:03:06,250 Then Brent. 41 00:03:07,910 --> 00:03:09,740 Um, language. 42 00:03:11,950 --> 00:03:13,090 Like Jova. 43 00:03:15,170 --> 00:03:16,280 Language. 44 00:03:21,200 --> 00:03:25,880 Oh, shut up, language found, sorry, I was thinking about how to resolve it in a different way. 45 00:03:26,390 --> 00:03:29,450 All right, this far we're good. 46 00:03:29,780 --> 00:03:31,040 Let's try to run it. 47 00:03:34,880 --> 00:03:43,250 OK, so you can see here that we have only two of these printouts of Java language found and accordingly, 48 00:03:43,250 --> 00:03:48,860 right here we have these two which Java is mentioned in there by the first one, does not have Java 49 00:03:48,860 --> 00:03:49,410 inside. 50 00:03:49,670 --> 00:03:52,130 So up until this point, we're good. 51 00:03:52,130 --> 00:03:52,850 We're OK. 52 00:03:53,390 --> 00:03:56,300 And you also ask to do the following thing. 53 00:03:56,300 --> 00:04:03,590 You're asked to scan once you get Java, you were asked to scan the Java variable and print the letters 54 00:04:03,590 --> 00:04:05,180 of Java one about the other. 55 00:04:05,930 --> 00:04:08,180 And we're going to do it right here. 56 00:04:09,170 --> 00:04:15,050 You can see that like the cursor right now is blinking inside the method. 57 00:04:15,050 --> 00:04:15,490 Correct. 58 00:04:16,130 --> 00:04:18,260 Then afterwards I created a for loop. 59 00:04:18,440 --> 00:04:23,240 OK, so we have a certain indention that I marked right here. 60 00:04:23,450 --> 00:04:30,470 And this indention means that whatever comes here in the intention is inside the for loop, OK, because 61 00:04:30,470 --> 00:04:32,130 the loop has less intention. 62 00:04:32,480 --> 00:04:36,500 So now we're inside it if and this if is inside the for loop. 63 00:04:36,770 --> 00:04:44,450 OK, and here we asked whether if language equals Java and inside the if we have more intention and 64 00:04:44,450 --> 00:04:47,030 the print of Java language found this in here. 65 00:04:47,060 --> 00:04:51,800 OK, but after we've printed out the Java language is found. 66 00:04:52,010 --> 00:04:58,850 I'm not staying in this indention because this indention level is inside the F basically. 67 00:04:58,850 --> 00:04:59,090 Yeah. 68 00:04:59,090 --> 00:04:59,900 I need to stay here. 69 00:04:59,900 --> 00:05:00,170 Yeah. 70 00:05:00,380 --> 00:05:06,890 OK, so I'm just saying this indention right here because I want to stay inside the if because if I'm 71 00:05:06,890 --> 00:05:12,290 inside the if it means that the currently Java variable is caught and this is what I'm looking for. 72 00:05:13,310 --> 00:05:18,740 And right now I want to scan each of these letters right here and each and every one of them want to 73 00:05:18,740 --> 00:05:19,340 print them. 74 00:05:19,340 --> 00:05:21,110 So I'm going to do is the following. 75 00:05:21,440 --> 00:05:28,010 We went over this in the previous in previous lectures, I think it was in variables, one of the first 76 00:05:28,010 --> 00:05:28,610 lectures. 77 00:05:28,880 --> 00:05:38,360 And in here, I want you just to write a for loop and mention here character in language like this. 78 00:05:38,640 --> 00:05:39,150 All right. 79 00:05:39,260 --> 00:05:44,210 So basically this will do is once you do print character. 80 00:05:44,610 --> 00:05:52,490 OK, so now we have a for loop, which the whole one the whole unit is language is one word in our case 81 00:05:52,490 --> 00:05:53,180 is Java. 82 00:05:53,480 --> 00:05:57,680 And the one item inside the hole is a character. 83 00:05:57,690 --> 00:06:01,550 It's going to break down the Java into one character each time. 84 00:06:02,090 --> 00:06:05,150 So let's try to run it and see that we were OK. 85 00:06:05,450 --> 00:06:06,010 Great. 86 00:06:06,350 --> 00:06:06,800 All right. 87 00:06:07,610 --> 00:06:09,410 So you could see Java language found. 88 00:06:09,620 --> 00:06:17,540 Then we have Java printed one above the other as we were asked to do and just to be just using like 89 00:06:17,540 --> 00:06:20,450 100 percent if this was an interview question. 90 00:06:20,690 --> 00:06:21,410 If you haven't. 91 00:06:21,410 --> 00:06:22,100 If you haven't. 92 00:06:22,100 --> 00:06:25,460 If I always mention the else as well. 93 00:06:25,610 --> 00:06:27,410 And right here you can mentioned. 94 00:06:29,580 --> 00:06:34,590 Like print, Jova was not found. 95 00:06:35,820 --> 00:06:42,900 OK, so if we run it, we will see all states you can see here Gevalt found, Jonathan Geminid found 96 00:06:44,370 --> 00:06:48,720 and only only one Java language found. 97 00:06:48,880 --> 00:06:51,780 OK, so the Java was printed out. 98 00:06:52,200 --> 00:06:53,430 So you can see right here. 99 00:06:53,610 --> 00:06:54,100 All right. 100 00:06:54,510 --> 00:06:59,130 So I think this concludes our assignment, our first assignment. 101 00:07:00,600 --> 00:07:02,580 This will be printed each time. 102 00:07:02,580 --> 00:07:10,110 We would not scan a the Java language, for example, Python, JavaScript or C++. 103 00:07:10,350 --> 00:07:14,400 So you have JavaScript here, C++ here. 104 00:07:16,440 --> 00:07:18,000 So sorry, Python here. 105 00:07:22,140 --> 00:07:30,600 Yeah, JavaScript and then C++ or Python, JavaScript, C++ just going to match these values to the 106 00:07:30,600 --> 00:07:31,110 outputs. 107 00:07:31,410 --> 00:07:35,310 Then we're going to the next one and we having here by dawn. 108 00:07:35,550 --> 00:07:42,630 OK, the next one in line is this one which is scanned and then we have Java OK, which is this output 109 00:07:42,630 --> 00:07:43,180 right here. 110 00:07:43,590 --> 00:07:50,580 So accordingly after Gervais's found we were printing the letters and then again we have Germinal found. 111 00:07:51,700 --> 00:07:56,890 All right, which is despite unvaluable scan and then we have Java language found, which is this one 112 00:07:57,280 --> 00:08:00,570 also printed out and the last one Javadoc found. 113 00:08:00,910 --> 00:08:01,450 All right. 114 00:08:02,470 --> 00:08:04,510 We can also mention here the name of the variable. 115 00:08:04,510 --> 00:08:07,240 So it would be easier and we do not have to guess. 116 00:08:07,270 --> 00:08:07,680 Right. 117 00:08:08,810 --> 00:08:09,410 Like this. 118 00:08:13,200 --> 00:08:20,640 Yeah, OK, so Python, Java, JavaScript, C++, then Python and all of these are not Java. 119 00:08:20,880 --> 00:08:23,310 And basically you have your answer right here. 120 00:08:23,580 --> 00:08:26,750 OK, let's just lose the empty lines. 121 00:08:27,030 --> 00:08:27,660 That's it. 122 00:08:28,230 --> 00:08:32,750 So what we see here is we have our method, which is this part right here. 123 00:08:33,000 --> 00:08:34,410 It's like a bulk of code. 124 00:08:34,440 --> 00:08:37,050 It's like a bag with goodies inside. 125 00:08:37,380 --> 00:08:40,930 And separately, we have the execution level right here. 126 00:08:41,220 --> 00:08:42,650 OK, so this is how it works. 127 00:08:42,960 --> 00:08:51,190 You see here the method which is at the side and right here you can see the execution separately. 128 00:08:51,260 --> 00:08:51,740 OK, 129 00:08:54,660 --> 00:08:56,430 so this was part part A. 130 00:09:00,190 --> 00:09:02,840 And I think we're ready to go to PABI now. 131 00:09:02,890 --> 00:09:03,340 All right. 132 00:09:04,640 --> 00:09:04,930 Oops. 133 00:09:07,860 --> 00:09:14,340 And right here in Palm Beach, before we begin, I just don't want to have mixed outputs here, so I'm 134 00:09:14,340 --> 00:09:21,270 just going to mark everything in power and use a control and backslash to comment it out. 135 00:09:21,480 --> 00:09:24,210 So Pichon would ignore this code for now. 136 00:09:24,810 --> 00:09:26,880 And let's start resolving Part B.. 137 00:09:27,220 --> 00:09:31,030 OK, so what do we have in Palm Beach? 138 00:09:31,440 --> 00:09:35,460 We have in part B, a task which will be a tax calculation. 139 00:09:35,730 --> 00:09:42,990 And first of all, we need to create for the first method, which is tax calculation, according to 140 00:09:42,990 --> 00:09:43,800 the guidelines. 141 00:09:46,220 --> 00:09:48,260 And it should be a gross salary. 142 00:09:50,130 --> 00:09:51,500 And tax, OK? 143 00:09:55,520 --> 00:09:58,890 In and inside of it, we should get net salary. 144 00:09:58,980 --> 00:10:01,090 OK, we're going to calculate the net salary. 145 00:10:01,670 --> 00:10:06,070 Yeah, and it should be gross salary and then reduce from meet 146 00:10:09,650 --> 00:10:11,830 the gross salary. 147 00:10:12,740 --> 00:10:13,770 You know what you can do. 148 00:10:13,790 --> 00:10:15,140 It's like it's a metric. 149 00:10:15,170 --> 00:10:16,340 OK, it's not a trick. 150 00:10:16,340 --> 00:10:17,790 It's like a math calculation. 151 00:10:17,870 --> 00:10:23,780 Indeed, in many ways I'm going to do the following thing, one which is like a hundred percent of the 152 00:10:23,780 --> 00:10:24,320 salary. 153 00:10:24,590 --> 00:10:30,620 If we leave it like that, like gross salary multiplied by one, we'll get 100 percent of the gross 154 00:10:30,620 --> 00:10:31,070 salary. 155 00:10:31,340 --> 00:10:42,920 But if we multiply it by one minus the tax, OK, so we will get a tax reduction in the net salary right 156 00:10:42,920 --> 00:10:43,370 here. 157 00:10:43,880 --> 00:10:51,470 OK, so we're getting one minus the tax and we're multiplying this value by our gross salary. 158 00:10:51,650 --> 00:10:54,160 So our gross salary will be smaller. 159 00:10:54,350 --> 00:10:57,350 It will be the net salary without the taxes. 160 00:10:58,140 --> 00:11:00,800 OK, this far so good. 161 00:11:01,070 --> 00:11:09,590 And then also please return the net salaries to just enter the keyword return and mention what do you 162 00:11:09,590 --> 00:11:10,330 want to return. 163 00:11:10,340 --> 00:11:11,760 I want to return the net salary. 164 00:11:13,110 --> 00:11:18,700 OK, this far we're OK right from here. 165 00:11:19,430 --> 00:11:23,530 Let's try to execute the first, the first one the like. 166 00:11:23,570 --> 00:11:24,740 This is the first method. 167 00:11:24,740 --> 00:11:31,160 We have two methods in this assignment, so let's try to execute this one and it's returning a value. 168 00:11:31,460 --> 00:11:33,310 So I'm just going to mention it here. 169 00:11:33,330 --> 00:11:36,860 Net salary and we're going to execute it three times. 170 00:11:37,010 --> 00:11:43,940 So we need three separate value variables and then we have tax calculation and the first one gets five 171 00:11:43,940 --> 00:11:47,900 thousand for the salary and zero point two for the tax. 172 00:11:48,680 --> 00:11:49,550 Second one. 173 00:11:50,090 --> 00:11:53,150 Let me just copy it to save some typing word. 174 00:11:55,020 --> 00:12:00,500 Bill Gates once said that the best developers are the lazy ones because lazy developers don't waste 175 00:12:00,500 --> 00:12:07,600 time on writing code again and again if you can find some shortcuts, so always do it. 176 00:12:07,850 --> 00:12:09,740 It's not a negative thing. 177 00:12:09,770 --> 00:12:11,040 The only effective. 178 00:12:11,120 --> 00:12:11,600 All right. 179 00:12:12,290 --> 00:12:18,170 So the second execution had 6000, the salary and Zurda 22. 180 00:12:18,740 --> 00:12:22,400 And the last one was 10000 like this. 181 00:12:22,650 --> 00:12:23,030 All right. 182 00:12:23,660 --> 00:12:26,310 But right here, we have a small problem. 183 00:12:26,600 --> 00:12:32,120 OK, so if you look at these three lines of execution, you can see the last line has like a gray background 184 00:12:32,120 --> 00:12:32,470 here. 185 00:12:32,750 --> 00:12:40,700 And once you hover above it, you can see Paramatta tax field because we missed something crucial. 186 00:12:40,760 --> 00:12:41,180 All right. 187 00:12:42,020 --> 00:12:43,040 We missed that. 188 00:12:44,090 --> 00:12:49,100 You were asked to use a default value for the last one. 189 00:12:49,110 --> 00:12:49,910 Let's have a look. 190 00:12:50,660 --> 00:12:54,110 OK, so let me just find it 191 00:12:56,960 --> 00:12:57,740 right here. 192 00:12:58,140 --> 00:13:04,340 Notice that if no tax variable is fast into the method, it should use zero 22 by default. 193 00:13:04,970 --> 00:13:05,360 All right. 194 00:13:05,370 --> 00:13:07,160 So let me just get back to Vikram. 195 00:13:07,310 --> 00:13:09,900 So we need to use some of default value. 196 00:13:09,920 --> 00:13:15,870 We studied it in the previous lectures and just put equals here and put the default value like this. 197 00:13:16,160 --> 00:13:23,570 So this will come in use only when we do not pass a variable into the method as it goes here in the 198 00:13:23,570 --> 00:13:24,720 third execution. 199 00:13:25,010 --> 00:13:28,430 So this would come into action and would be used. 200 00:13:28,740 --> 00:13:29,240 All right. 201 00:13:29,690 --> 00:13:35,240 So I think we're OK for this balustrade to run it and see that we're good. 202 00:13:35,630 --> 00:13:36,730 OK, there is no errors. 203 00:13:36,740 --> 00:13:38,210 I don't have any printouts. 204 00:13:38,210 --> 00:13:45,050 So, you know, I can just print out here the net salary. 205 00:13:49,020 --> 00:13:53,160 And plus, casting and net salary. 206 00:13:53,550 --> 00:13:56,260 All right, just to see that everything's fine. 207 00:13:56,760 --> 00:14:00,510 OK, so you can see reduction here from five thousand to four thousand. 208 00:14:00,510 --> 00:14:05,350 From six to four forty eight hundred and from ten to seven thousand eight hundred. 209 00:14:05,370 --> 00:14:12,540 So this far we're OK, but we have an additional assignment, additional method that needs to be created 210 00:14:13,830 --> 00:14:16,530 and the method should be as follows. 211 00:14:16,710 --> 00:14:25,950 OK, so the next method you're asked to create is salary limit testor, if I'm not mistaken. 212 00:14:26,880 --> 00:14:27,300 Yeah. 213 00:14:27,300 --> 00:14:28,890 Salary limit Testor. 214 00:14:28,890 --> 00:14:29,730 Let's create it. 215 00:14:32,700 --> 00:14:37,800 Like this, and it should get a net salary variable inside it. 216 00:14:40,400 --> 00:14:50,060 By the way, notice that this variable received here does not have to be the same, which is passed 217 00:14:50,060 --> 00:14:51,060 into the method. 218 00:14:51,080 --> 00:14:57,710 OK, so right now I'm just going to do the following thing, salary limit Testor and put the net salary 219 00:14:57,710 --> 00:14:58,730 one inside it. 220 00:14:58,790 --> 00:15:06,230 OK, so you can see I offset inside net salary one, but it received net salary variable because you 221 00:15:06,230 --> 00:15:09,200 don't have to match these names because this one's dynamic. 222 00:15:09,420 --> 00:15:16,940 OK, inside the method and the first time and the first execution we put net salary, one bought in 223 00:15:16,940 --> 00:15:19,590 the second time we put the necessary two, OK. 224 00:15:19,880 --> 00:15:25,670 That's why this name is not connected to the name that is passed into the method is no connection between 225 00:15:25,670 --> 00:15:25,910 them. 226 00:15:26,750 --> 00:15:27,230 All right. 227 00:15:29,210 --> 00:15:35,690 So just put a pass here because I see what when I don't put that you have a small red line under the 228 00:15:35,690 --> 00:15:37,310 net salary under the end here. 229 00:15:37,340 --> 00:15:39,580 OK, so for now, just going to put Bas here. 230 00:15:39,710 --> 00:15:40,130 All right. 231 00:15:42,180 --> 00:15:51,520 So I think we are prepared to put content inside this method right here and inside this method, you 232 00:15:51,520 --> 00:15:55,110 were asked to check a simple thing if. 233 00:15:56,080 --> 00:15:58,300 Net salary variable. 234 00:15:59,440 --> 00:16:10,570 Is bigger or equal to five thousand eight hundred like this, and if it does, then print success. 235 00:16:15,700 --> 00:16:16,390 Success. 236 00:16:17,460 --> 00:16:18,600 The salary is. 237 00:16:20,380 --> 00:16:29,440 And then just put casting and that Sellery variable and and just put a plus here. 238 00:16:30,760 --> 00:16:38,910 Yep, like this, and if it's not, then we want us always to use the hours, which is the default exit 239 00:16:38,950 --> 00:16:40,630 point and right here. 240 00:16:43,430 --> 00:16:44,240 The salary. 241 00:16:45,850 --> 00:16:48,970 He's under five thousand eight hundred years. 242 00:16:50,810 --> 00:16:52,580 And podcasting. 243 00:16:54,740 --> 00:16:56,330 And that salary variable. 244 00:16:56,810 --> 00:16:58,880 OK, let's run it. 245 00:16:59,070 --> 00:17:00,950 Oops, I clicked on the debug. 246 00:17:03,350 --> 00:17:12,610 Yeah, OK, so the first execution with 5000 you can see like the net salary is 4000. 247 00:17:12,620 --> 00:17:17,210 And the second method brings out the salary is under 5200. 248 00:17:17,210 --> 00:17:17,780 It is four. 249 00:17:18,390 --> 00:17:22,760 OK, so what happened here is we executed from top to bottom here. 250 00:17:22,970 --> 00:17:24,460 We executed the first method. 251 00:17:24,470 --> 00:17:31,220 We've said 5000 inside and to end up in here and we reduce the tax and we got the net salary. 252 00:17:31,640 --> 00:17:36,170 Then we printed the net salary inside the first method right here, the net salary. 253 00:17:36,680 --> 00:17:39,160 Then at the end, we have returned the value. 254 00:17:39,170 --> 00:17:42,900 So the value value is returned to the execution level here. 255 00:17:43,690 --> 00:17:51,530 OK, this thing returned us 4000 and it went straight up in net salary one. 256 00:17:52,550 --> 00:17:54,360 This variable got four thousand. 257 00:17:54,590 --> 00:18:01,850 Then we took this four thousand and we've set inserted it into this method, the salary salary limit 258 00:18:01,850 --> 00:18:09,180 test and the variable went inside here and then it goes up in here inside the method. 259 00:18:09,230 --> 00:18:13,280 OK, this thing gets four thousand and it gets to here. 260 00:18:13,280 --> 00:18:18,220 Four thousand is smaller, is smaller than five thousand eight hundred. 261 00:18:18,440 --> 00:18:20,270 So this case is false. 262 00:18:20,270 --> 00:18:21,400 The statement is false. 263 00:18:21,740 --> 00:18:28,490 So it goes straight to the house and inside the else we're printing the salary is under five thousand 264 00:18:28,490 --> 00:18:29,240 eight hundred. 265 00:18:29,270 --> 00:18:31,740 It is four thousand. 266 00:18:32,510 --> 00:18:39,690 OK, same thing for the second thing is for the second run when we use the six thousand here and we 267 00:18:39,690 --> 00:18:45,710 were reducing the tax and it gets four thousand eight hundred still under five thousand eight hundred. 268 00:18:45,980 --> 00:18:53,270 But in the last one, once we reduce from ten thousand to taxes we get seven thousand eight hundred 269 00:18:54,060 --> 00:18:57,920 and then once we put the seven thousand eight hundred inside here. 270 00:18:58,340 --> 00:19:02,020 OK, success, this salary is seven thousand eight hundred. 271 00:19:02,360 --> 00:19:06,500 So this pause right here is a true statement. 272 00:19:06,530 --> 00:19:07,970 So this one is printed out. 273 00:19:08,780 --> 00:19:12,020 OK, so it seems like there are two parts in method. 274 00:19:12,020 --> 00:19:13,430 Those always two parts. 275 00:19:13,580 --> 00:19:18,110 You have the part of the method declaration and method content. 276 00:19:18,570 --> 00:19:19,970 OK, same goes here. 277 00:19:19,970 --> 00:19:23,690 Declaration and content and the content. 278 00:19:23,690 --> 00:19:29,930 You know, it's the content because you have indention here and right here we are executing the methods, 279 00:19:29,930 --> 00:19:31,700 the not like not connected. 280 00:19:31,700 --> 00:19:34,940 There are two parts here, the declaration and the execution. 281 00:19:35,240 --> 00:19:38,450 OK, so the execution starts from here. 282 00:19:38,450 --> 00:19:40,040 We execute the first method. 283 00:19:40,350 --> 00:19:47,270 Then we get this variable, we put this variable inside here and the salary limit test gets the second 284 00:19:47,270 --> 00:19:50,750 variable and then this thing is executed. 285 00:19:50,990 --> 00:19:55,610 And then the second time all over again and all over again once more. 286 00:19:55,910 --> 00:20:01,280 OK, I think we covered all method. 287 00:20:01,280 --> 00:20:05,600 Stop these questions, surely going to be asked in interviews. 288 00:20:05,810 --> 00:20:08,600 So it's really important to understand everything we did here. 289 00:20:08,600 --> 00:20:12,110 You can also watch it maybe a second time if it's a bit hard for you. 290 00:20:12,380 --> 00:20:18,290 And also you can just copy the file of the results, which is attached to this lecture and just play 291 00:20:18,290 --> 00:20:23,480 with the variables and play with the methods and understand deeper what happened here if you had had 292 00:20:23,480 --> 00:20:24,110 some trouble. 293 00:20:25,490 --> 00:20:30,620 I think that all topics of methods, like most of them, were covered, covered here. 294 00:20:30,890 --> 00:20:34,370 And we'll we are dominators in methods as well. 295 00:20:35,400 --> 00:20:39,800 I'll see you in the next lecture where we start discussing object oriented programming. 296 00:20:40,100 --> 00:20:46,340 Basically, we're going to use methods as building bricks or puzzle pieces. 297 00:20:47,060 --> 00:20:49,060 Both methods for metaphors goes here. 298 00:20:49,280 --> 00:20:56,300 I'm going to use them as puzzle pieces in object oriented programming, and we're going to use object 299 00:20:56,300 --> 00:21:03,680 oriented approach by using methods in the correct way, in the structured way, same as professional 300 00:21:03,680 --> 00:21:04,250 programming. 301 00:21:04,250 --> 00:21:11,210 LS worldwide are using it and at the end we're really close to becoming a python ninja developer. 302 00:21:11,900 --> 00:21:14,420 Thank you for this lecture and we'll see you in the next one. 303 00:21:14,690 --> 00:21:15,230 Bye bye.