So until now, what we are doing quite simply, to run a function and then see some text on our screens,
but in the real world, the functions are basically used to get certain inputs and providers to certain
outputs.
And when we're putting the statements, we are not actually getting any output.
We are just seeing text that was presented to the parenticide, the function.
So in order to get an actual output, in order to function, to give us some variable, we use the return
statement and I will show you why we actually use it.
So let's imagine that we need to create a function that estimates about having the velocity and the
time so the parties equal to the goals to multiply by the time.
And this is what the function is going to estimate.
So let's write to Jeff.
But the committee, so we're passing a velocity and the time to just function, then print.
And as you can see, this is our function.
And without we don't have a return statement here for that reason.
Let's right now is Suko and let's pause about 30 and 60.
So we have the speed of 30 kilometers per hour and our time is 60 hours.
And now let's print this.
So print s so let's run the court and see what happens.
Now, what you're getting here is the value that you needed and also you are getting.
No, but what you're getting.
Well, this is because you're first calling the print statement inside the function and then you're
actually trying to print the value of this.
That's why first you're getting the right result and then you're getting no.
And this is because and can be simply avoided by adding a written statement and that function.
So what you can do instead of printing everything, is the function is to return it to our right return.
We multiply it by T.
And then instead of having a sequel to that statement, you can see right inside the print statement
the name of the function sockpuppet and pass the virus 30 and 60.
So now if you're on the court, you're getting simply the result.
And this is because you're printing the result on here.
So when you run the function, you're returning the value of your multiplied by 80.
This is the output of the function.
And then you're printing this result with the print statement here.