Hello, everybody, and welcome to this lecture will be a continual lecture to the previous one regarding
string variables.
So as I promised, each topic will be practiced.
So this lecture will be dedicated to homework practice assignment that they prepared for you.
So before we begin, I have just a very important note, a very important note to tell you guys.
You have to be feel you have to feel free to be creative.
There are many ways to solve each of these steps right here.
So there's not only one way, there are multiple ways to solve each one and feel free to think outside
of the box and try to solve the following steps.
So what we're going to do now is go over the steps and just going to explain you the steps literally.
And afterwards, I recommend you guys to pause the lecture, try to solve the steps by yourself, take
approximately 30 to 45 minutes maybe, and try to solve them.
And afterwards, after 30 to 45 minutes, if you get stuck, just play the lecture and I would show
you my resolution.
And that way you could see the resolution as well about how we highly recommend to pass the lecture.
And first of all, try to break down these steps by yourself and try to solve them by themselves.
All right.
So let's begin.
So the first step would be pleased to declare a new variable called Windows zero number and give it
the following value, A.B.C. minus the avgi and so on and so on.
And afterwards, please create four new variables.
All right.
For example, you can create a partial variable, a partial variable, B, partial variable C and the
same D, each variable should contain three letters out of the above windows.
Serial number variable.
And as I just mentioned, please use the prefix new in your name and there is a hint here, use the
index range to extract exactly what you need from the original variable, from step one.
All right.
So this that the second step obviously doesn't mean that I want you to do sorry.
I have the purple Carryl color here.
I don't want it.
It's obviously doesn't mean I want you to do like new partial variable.
A and do it like this.
Yeah, because because what's the point then?
We didn't practice anything.
Just try to remember or even see again the previous lecture that we discussed regarding index indexes
and the index range.
So you could just take this variable right here and choose specific letters out of it using index range
or I just see the previous lecture, if you don't remember, we went over it in the previous lecture.
So after you have four new variables, then we you can head on to the third step.
All right.
So upon each of the new four variables you use, reply, replace action and set on each of the above
new variables to be the following values.
So we have four new variables, right?
Each variable which contain three of these letters.
The first one would contain A, B, C, the second one would contain the third one and fourth one J,
K, l.
So I would like you to take the first variable out of the new four and give it the value.
AAA using the replace action.
All right.
We went over these guys in the previous lecture use replace to change, for example.
The first variable would have A, B, C change it to be AAA.
The second variable would be D of G from here.
The second step, the second variable would be DFG.
So replace it with B, B, B and so on to the third one and the same thing for the fourth one.
All right.
It's a bit challenging, but I try to do it by yourself.
And if you get stuck just after like thirty, forty five minutes, try and just play the lecture and
see the resolution.
But first, it's very important for you to try thinking out of the box and try to resolve it by yourself.
All right.
So let's go on to the fourth step.
So now I would like you to create a new variable called Encoded Windows, the serial number.
This is the name of the variable which should be built of the new four variables divided with a minus.
All right.
So basically, I would like you to create a variable with this name and take the four variables that
we have built right here with AAA, BBB, CCC and DDD.
And out of these four just build.
This value.
All right, I just want to remind you guys that what you need to do basically is that you can use the
plus sign.
All right.
It's a really big hint.
Can use the plus sign and just build a new variable with this name and with these values.
And the final step would be to print the new serial number and mention with plain text that this is
the encoded serial number and add the serial number to serial number to be printed.
All right.
This is a guys, these are the steps.
You have a five minute tasks here that basically practice almost everything that we have been through
in the last lecture.
And I really recommend you to resolve it by yourself.
So good luck then.