Hello, in this video we are going to cover operating and more specifically the arithmetic operators. So the arithmetic operators are stuff like addition, subtraction, division, that sort of stuff. There's a couple of other ones that may may or may not have heard of depending on how much maps you know, and how much you know you've been doing coding for. Okay, so first of all, we're going to be just doing everything within print, it's going to be printed essentially in line and pray here, you can obviously assign it to a variable and use it later on as we show you how to actually manipulate data and know using within functions and you know, do that sort of stuff. But for now, just for the sake of this tutorial, we'll do it in here. So for example, we could do five, six, and also obviously these numbers can be replaced with variable.
Okay, then do another print one, minus six, and I think you can see where I'm going with this. Copy and Paste. I'm going to change this to a multiply to divide. And now let's run this and see what we get nothing you can guess what we're going to get 11 minus 130. And that'll be an interesting. We have 0.8 free free well recurring.
And yeah, so that's it for like really basic operators. Let's cover the modulus operator. So this is basically return the remainder. brand to Parliament. I'll do another one is much less operator is not a volume for run their own name drifted in the last two output lines. That's all we've added.
Okay, so we have five and one. So what the remainder does is it sees how many times the number on the right can go to the number on the left, and whatever's left over that way comes out safe Count 125 at all. So it is bringing a return five to the, the whole numbers main it was nine divided by four, four goes into nine two times which resulting eight, and nine minus one, I mean nine minus eight is one, and that is the remainder. So there's also the exponent operator. So So friends, what we're going to do X operator, so let's say we do five squared, that will result in 25. And you just put in five as requested to so five This is the equivalent of doing five squared.
So if we run this again and there you go 25 other one final program show you and this is called a floor division. So you do two for flattens that are one for the other 17 over the floor Division Three. As a result, we'll get into the pretty pretty interesting to me a result of five or seven looks at four times three, we get 50. So the actual result is 15 point something. So we're looking at 15.6 recurring, so it effectively gets rid of depending whether it's a positive or negative value, he will he will go towards, you know, one way like, like negative infinity or the other. So like experiment with it, check it out, try different ones from minus numbers.
And obviously, we can change these to minus number will be a minus five. That's, like perfectly fine. That's still fine within the realm of mathematics. So that's it for arithmetic operators, and we have more videos covering the various operators in Python and how to use them. Thanks for watching, and I'll see you in the future videos.