1 00:00:12,660 --> 00:00:19,080 Hello, everybody, and welcome to this lecture will be a continual lecture to the previous one regarding 2 00:00:19,080 --> 00:00:20,150 string variables. 3 00:00:20,160 --> 00:00:23,340 So as I promised, each topic will be practiced. 4 00:00:23,340 --> 00:00:29,580 So this lecture will be dedicated to homework practice assignment that they prepared for you. 5 00:00:30,180 --> 00:00:36,570 So before we begin, I have just a very important note, a very important note to tell you guys. 6 00:00:36,920 --> 00:00:40,630 You have to be feel you have to feel free to be creative. 7 00:00:40,920 --> 00:00:44,630 There are many ways to solve each of these steps right here. 8 00:00:45,480 --> 00:00:51,630 So there's not only one way, there are multiple ways to solve each one and feel free to think outside 9 00:00:51,630 --> 00:00:53,890 of the box and try to solve the following steps. 10 00:00:54,360 --> 00:01:01,410 So what we're going to do now is go over the steps and just going to explain you the steps literally. 11 00:01:01,620 --> 00:01:08,490 And afterwards, I recommend you guys to pause the lecture, try to solve the steps by yourself, take 12 00:01:08,490 --> 00:01:13,020 approximately 30 to 45 minutes maybe, and try to solve them. 13 00:01:13,170 --> 00:01:19,500 And afterwards, after 30 to 45 minutes, if you get stuck, just play the lecture and I would show 14 00:01:19,500 --> 00:01:20,610 you my resolution. 15 00:01:20,850 --> 00:01:27,800 And that way you could see the resolution as well about how we highly recommend to pass the lecture. 16 00:01:27,820 --> 00:01:32,750 And first of all, try to break down these steps by yourself and try to solve them by themselves. 17 00:01:33,260 --> 00:01:33,800 All right. 18 00:01:33,810 --> 00:01:34,770 So let's begin. 19 00:01:35,460 --> 00:01:43,350 So the first step would be pleased to declare a new variable called Windows zero number and give it 20 00:01:43,350 --> 00:01:48,990 the following value, A.B.C. minus the avgi and so on and so on. 21 00:01:50,130 --> 00:01:56,370 And afterwards, please create four new variables. 22 00:01:56,680 --> 00:01:57,200 All right. 23 00:01:57,480 --> 00:02:08,310 For example, you can create a partial variable, a partial variable, B, partial variable C and the 24 00:02:08,310 --> 00:02:15,630 same D, each variable should contain three letters out of the above windows. 25 00:02:15,630 --> 00:02:17,580 Serial number variable. 26 00:02:19,080 --> 00:02:26,010 And as I just mentioned, please use the prefix new in your name and there is a hint here, use the 27 00:02:26,010 --> 00:02:31,920 index range to extract exactly what you need from the original variable, from step one. 28 00:02:32,310 --> 00:02:32,760 All right. 29 00:02:33,060 --> 00:02:40,120 So this that the second step obviously doesn't mean that I want you to do sorry. 30 00:02:40,140 --> 00:02:41,910 I have the purple Carryl color here. 31 00:02:41,910 --> 00:02:42,540 I don't want it. 32 00:02:42,880 --> 00:02:50,130 It's obviously doesn't mean I want you to do like new partial variable. 33 00:02:53,040 --> 00:02:55,380 A and do it like this. 34 00:02:55,620 --> 00:03:00,180 Yeah, because because what's the point then? 35 00:03:00,180 --> 00:03:01,380 We didn't practice anything. 36 00:03:02,730 --> 00:03:10,560 Just try to remember or even see again the previous lecture that we discussed regarding index indexes 37 00:03:10,560 --> 00:03:12,030 and the index range. 38 00:03:12,330 --> 00:03:21,870 So you could just take this variable right here and choose specific letters out of it using index range 39 00:03:21,870 --> 00:03:27,250 or I just see the previous lecture, if you don't remember, we went over it in the previous lecture. 40 00:03:28,200 --> 00:03:36,000 So after you have four new variables, then we you can head on to the third step. 41 00:03:36,510 --> 00:03:36,860 All right. 42 00:03:36,870 --> 00:03:48,750 So upon each of the new four variables you use, reply, replace action and set on each of the above 43 00:03:48,750 --> 00:03:51,330 new variables to be the following values. 44 00:03:52,380 --> 00:03:55,350 So we have four new variables, right? 45 00:03:56,190 --> 00:03:59,970 Each variable which contain three of these letters. 46 00:03:59,970 --> 00:04:07,350 The first one would contain A, B, C, the second one would contain the third one and fourth one J, 47 00:04:07,350 --> 00:04:08,060 K, l. 48 00:04:08,580 --> 00:04:15,270 So I would like you to take the first variable out of the new four and give it the value. 49 00:04:15,570 --> 00:04:18,750 AAA using the replace action. 50 00:04:18,780 --> 00:04:19,140 All right. 51 00:04:19,140 --> 00:04:24,720 We went over these guys in the previous lecture use replace to change, for example. 52 00:04:24,720 --> 00:04:28,980 The first variable would have A, B, C change it to be AAA. 53 00:04:29,250 --> 00:04:33,230 The second variable would be D of G from here. 54 00:04:33,240 --> 00:04:36,390 The second step, the second variable would be DFG. 55 00:04:36,600 --> 00:04:42,510 So replace it with B, B, B and so on to the third one and the same thing for the fourth one. 56 00:04:43,590 --> 00:04:44,070 All right. 57 00:04:44,070 --> 00:04:47,160 It's a bit challenging, but I try to do it by yourself. 58 00:04:47,310 --> 00:04:54,750 And if you get stuck just after like thirty, forty five minutes, try and just play the lecture and 59 00:04:54,750 --> 00:04:55,650 see the resolution. 60 00:04:55,650 --> 00:05:01,140 But first, it's very important for you to try thinking out of the box and try to resolve it by yourself. 61 00:05:02,100 --> 00:05:02,460 All right. 62 00:05:02,460 --> 00:05:05,580 So let's go on to the fourth step. 63 00:05:06,570 --> 00:05:12,370 So now I would like you to create a new variable called Encoded Windows, the serial number. 64 00:05:12,540 --> 00:05:21,660 This is the name of the variable which should be built of the new four variables divided with a minus. 65 00:05:22,050 --> 00:05:22,560 All right. 66 00:05:23,430 --> 00:05:31,920 So basically, I would like you to create a variable with this name and take the four variables that 67 00:05:31,920 --> 00:05:36,090 we have built right here with AAA, BBB, CCC and DDD. 68 00:05:37,380 --> 00:05:40,140 And out of these four just build. 69 00:05:41,070 --> 00:05:42,430 This value. 70 00:05:42,480 --> 00:05:52,710 All right, I just want to remind you guys that what you need to do basically is that you can use the 71 00:05:53,220 --> 00:05:54,070 plus sign. 72 00:05:54,120 --> 00:05:54,520 All right. 73 00:05:54,540 --> 00:05:55,800 It's a really big hint. 74 00:05:56,220 --> 00:06:02,940 Can use the plus sign and just build a new variable with this name and with these values. 75 00:06:03,660 --> 00:06:11,550 And the final step would be to print the new serial number and mention with plain text that this is 76 00:06:11,550 --> 00:06:17,280 the encoded serial number and add the serial number to serial number to be printed. 77 00:06:17,790 --> 00:06:18,260 All right. 78 00:06:18,690 --> 00:06:20,520 This is a guys, these are the steps. 79 00:06:20,790 --> 00:06:28,590 You have a five minute tasks here that basically practice almost everything that we have been through 80 00:06:28,590 --> 00:06:29,730 in the last lecture. 81 00:06:29,730 --> 00:06:32,700 And I really recommend you to resolve it by yourself. 82 00:06:33,150 --> 00:06:34,230 So good luck then.