Now let's start learning pythons in Texas by performing some basic arithmetic operations
the most basic operation is addition of two numbers.
We can use less symbol to do that so we will write two plus two and we will execute this cell by pressing
either anchor.
You can see we are getting dessert as an output the second automatic operation is subsection.
We can use minus some but so if we write five minus two and execute it we are getting that is a next
is multiplication.
We can use a strict symbol multiply two numbers fit a three into four.
Things is a good day.
We are getting well as our output.
Next is division we'll write five slash to now to use power or exponential functions.
We can use to restrict symbols.
So if I write five as strict as strict two means that we are squaring five.
Next is modulus or remainder function.
It will return the remainder of the division.
So if I write five modulus two we are getting one as our result.
So if we divide 5 by 2 we get one.
As a reminder we can also use multiple operators so I can write five in total plus for
if I execute this command.
I will get 14 as a result you can notice that Python is falling the board must rule first it is multiplying
five N2 then it is adding four to that result it is better to use parentheses while using multiple operators.
So if we want to add two and forward first and then multiply it with five we can write five and in parenthesis
we can add two plus four.
You can see here we are first adding the 1 4 which is 6 and then multiplying this number with the 5.
So the result is 30 when you are using multiple operatives it is always the command to use parenthesis
we can also assign these values to variable.
So I can assign that one equal to do so now my variable where one is containing the value to if I just
state veteran and executed by 10 will displayed.
Well you can see now we are getting to as an output we can also use automatic operators while defining
the variable.
So if I just change the value of 1 to our previous argument that is 5 and 2 two plus four
our.
Radwan will now contain a value for being.
You can also notice that we have replaced the value 2 with value 14.
So if you do we assign value to some variable it will just replace that value.
Now Python also supports competition operators.
So if I write five greater than to that is there it is true.
Similarly it also supports less than less than equal to and more than inquiry tool.
So for example I can write three less than equal to two.
That result shouldn't be false and we are getting false as our output.