Hi everyone.
So let's discuss about what is numbers and what are the different Mac operators had available to bite
on.
So throughout this whole section we just walk through all the basic functionality available in a python
and in the next section we'll see some of that one concept available in Python.
So let's start with the very simple basic numbers and then we'll see what are the Met operation you
can perform on top of this number.
So if you see numbers then there are mainly two kinds of numbers that are available in a python.
So one is kind of whole number presentation which the qualities are in danger.
And another one is like a decimal number representation which is anything but a float.
So let's define when some couple of integer for us.
So let's say you want to represent 32.
That is a purely individual based number.
You can get to know about what is a type of this particular correctly too.
So for that you can use later type function and just simply supply this technique.
So it is the donor engagement instead of that you're in the supply like zeal.
So zero is also integer.
So let's define another one like a float so float is a presentation of the decimal number.
So let's say you want to leave prison four point six.
So that is nothing but the float value and let's say you want to get that type of this particular four
point six.
So this particular type function will return the float.
So this way there are mainly two kinds of numbers that are available.
One is a danger and a float.
Now we don't assign this particular numbers the like integer or float to any particular variable so
Lexus are assigned to one particular variable so variable I haven't yet discussed.
So in the next screen you will discuss about in a detail what this variable is and what are different
types of variables had a really a bite.
So let's assign a variable really create an X and here we are going to assign let's say any numbers
let's say twenty three
and let's say you want to find what is the type of place x.
So it really diner in the same way you can define Labor float like a 4.5 four point six.
Let's see what is.
So do is like an integer but if we disagree.
But as in zero zero point zero need to really mean float.
So this is the two basic data eight by as a number that really Ballina pi.
Now let's see what an operation you can perform on the top of this matter.
What are the different map operation you can perform on the top of these numbers.
So let's say it is so simple let's say 30 plus four.
So it will immediately return us to seven.
So you can use despite on us a like a calculator.
What it is some what.
Much much more than a calculator.
Let's take another simple element C minus four point six.
So it will immediately return as the float number.
So whenever you do any no population between the.
Then it will return the resulting in danger provided the results are not enough float number.
So three plus four is always a mean.
Indeed.
But if you consider the second operation in a second operation view just subsector of one float number
from the data.
So whenever anything is involved which is a float then the result will be definitely float because if
the result is an integer you will lose the policies and you will lose the data.
So in that case the baton will just return to float number.
Let's do some sort of multiplication so say multiplied by five.
But if you do something like 5.0 it will return ten point lead.
So now in a first result it is a return at 10 which is netting retained digit returns.
Second reason it has written a 10 point deal of it is not in the float.
So let's increase the complexity of our operation.
Let's say you want to perform two plus five minus 10.
So that is a multiple of this any pool will perform and it behaves like a calculator.
So it is a return to minus three.
Let's use a sum.
So let's use some bracket and we added some more complexity to our expression
let's say you want to perform some multiplication first
and then you want to add to it.
So 1 to five become 10 plus 3 become a.
So as per the board my solution will calculate or perform all those kind of operation that our first
priority will always be a.
And this is an operation and DNA multiplication DNA.
And he sent in a subsection.
Let's do some sort of DNA and let's say when you're in big 23 so it will return to float number.
So this is all about the recent multiplication.
It is in a subsection.
Now let's do some more operation let's see you'll want to find the exponent.
So let's see.
We want to find exponent of fine so we can use that to extract some way to start a symbol and fight.
So a year to really become a base then finally become exponent.
So it will return us to multiply fightings.
So it should retain its target.
Because if you just do
it to return us to let's say instead of five in just the five point two.
Then also it will return us thirty six point seventy five.
Let's do another operation.
Let's say you want to find the remainder while dividing some value with some other value.
So let's say you want to do a 32 right.
So it has returned to float number.
Now if you want to get the interesting data part of it you're going to simply use double slash.
So there will far much less need to legislate an integer part so you can consider it like a integer
division of this 32.
Divide by seven now.
Same way for this particular number you want to find what is the remainder left.
So you can simply use the modulo operation so to perform a modulo operation in a python you can use
this particular percentage St..
So 32 modulo 7.
So it has retained four because the seven multiplied by a four will become a 28 and 28 subtracted from
this party to Souleymane those four.
If you just do three you should return five.
OK.
So these are all the basic mathematical operation you can perform on top of numbers.
So let's just summarize what we learned in this video.
So we are learning about different kinds of numbers that are really willing to buy time and order the
operation you can perform on top of byte on like a simple basic add medics and different special operation
like.
Explain chill operation then you learn about being data design and model operation.
So let's talk about this with you seeing the next video.