Now, it is a time for your first assignment here, so having all the knowledge that they just gave
you, I want you to complete one assignment.
So what I want to create I want to create two numbers, actually.
I want the system plus the user to us.
Two numbers, a number A.
And no, baby, so you need to create two inputs and one of the inputs to be assigned to Number A in
their input, to be assigned to number B, then what they want to do is to obstruct these numbers.
So I want to subtract.
So so subtract.
No B from Numberi.
And what they want to do is to print.
The result?
OK, so try two minutes to do this yourself, and if you cannot do it, simply continue the video,
because I will show you how this is done right now.
Now, let's create number eight.
So number will be equal to float.
Input's.
First.
OK, so here we ask the user for input and actually you can see that here I wrote Float because I want
to specify that this is a float.
So this is some number with the decimal point.
Right.
As you remember in the last exercise, we wrote it in front of the jury.
Right.
And we did it because we want to specify that this is not a string, but but this is actually an integer.
So in that case, we want our first number to be float.
So we have the ability to do this point.
And also the second number will be the same.
So no course float.
Input's.
Second.
And that's it.
Now we're getting to numbers from the user then since we have the numbers, we can simply subtract them.
So this right so equals number eight minus number.
And finally, let's print the results.
So here are right, Resul estar.
So, OK, so the results, I'm going to print it as a shrink.
Right.
And it is very important to specify this here because if you don't specify that the subtraction here
is a is a string, then it will not work because you cannot combine integer with the result here.
Right.
So that's it.
Let's from our code and this adult.
So here you can see, whereas for the first number is the first number would be 10 and let the second
number be seven.
And here you can see that our resort district, so we can see the results statement and we can see the
actual result, which is three with the decimal point, because we specified the number eight and the
number B as flow.
You can also go further by doing Kronish statement and simply check.
If the subtraction is more than zero, then you can print the negative number.
And in any other case, you can print the positive number.
OK, so in that case, if I run the cold, let's make the first number equal to.
Six.
And the second equal to 12, and here we're getting minus six, which is a negative number both for
defense statements, I will concentrate later on in this video.