Hello guys and welcome to python programming

tutorials by amuls academy. Today in this class we are discussing about

arithmetic operators and relational operators in python programming language. First we will discuss about arithmetic operators

there are 8 arithmetic operators in python. First one is negation 2nd one is addition

3rd one is subtraction 4th one is multiplication 5th one is division 6th one is truncating

division 7th one is modulus and 8th one is exponential. We will discuss all of these one by one.First

we will discuss about negation.Negation is an unary operator which is used to negate

the value for example -5 here – symbol is used as negation symbol and this is an unary

operator because it contains single operand. Okey 2nd one is addition and + symbol is used

for addition that 5+6 is an example answer is 11. And 3rd one is subtraction and – symbol is

used for subtraction.that is 5-3 answer is 2. And 4th one is multiplication and * is used

for multiplication 5*2 answer is 10. 5th one is division 25/5 answer is 5 here

/ is used as division symbol. These are the basic arithmetic operators so

i won’t explain more about this. Now the 6th one is truncating division it

is similar to division but it will truncate the result for example in the case of 5/4

answer is 1.25 if we use truncating division that is // answer is 1 it will eliminate the

digits which are present after the point. This is about truncating division.Next one

is modulus. Modulus will give reminder as result for example

5%2. % is used as modulus symbol. answer is 1.I’ll explain why this is one. As i said 5%2 that is 2*2=1 here reminder

is 1 so we are getting answer as 1. Then the last one is exponential if you want

to find out answer for 2 power 5 here 2 is called as base and 5 is called as exponent. If you want to find out the exponential of

some value then you can use exponential operator.** is used as symbol for exponential operator.First

we need to type base then ** and the exponent and press enter you can see the answer.that

is 32. Okey this is about the 8 arithmetic operators

in python programming language. Now we will move on to relational operator.There

are six relational operator in python programming language. That is equal, not equal,less than, greater

than,less than or equal to,greater than or equal to.We can see the symbol here. First we will discuss about equal and not

equal.equal and not equal are used to check whether two elements are equal or not. For example 5==5 it is true because 5 is equal

to 5.In the case of not equal !=the symbol is this.5!=5 this is false because 5 is equal

to 5.This is about equal and not equal. Next is less than. Less than is used check whether left element

is less than the right element or not.For example 63 yes it is true so we

will get answer as true.If i type 5>6 no it is not so we will get answer as false.This

is about less than and greater than. Then the next operator is less than or equal

to this is the combination of less than and equal to operator.We will take an example

for less than or equal to 5=4 yes it is true because 6>4.6>=6 yes this is

also true because 6 is equal to 6. Okey this is about relational operator in

python programming language.Thats it for now thank you for watching i will meet you in

next class till than take care.

so truncating always returns a int. div returns a float

"I have seen both videos of yours in OPERATORS IN PYTHON but i did not find THE BITWISE OPERATOR in python . can you please make a video regarding this bitwise operator

this operator is so confusing to me

i tried my level best to understand this concept but i couldn't able to understand

so please can you make video on this BITWISE OPERATOR

as your way OF explaination is very good

thank you…!!

I THINK your video only will help me to understand this bitwise operator

i hope you will do…!!

Thank You!

hey, according to assigning values

a+b can be written as a+=b.

then why idle is showing syntax error on a+=b?

All videos are good.easily learning

5%4 is 1 got it, but While writing 4%5 it shows 4 as a remainder why?

Great teaching

mam apart from the pattern question can u provide as the logical question too!!!!!

Your presentation is extremely good compared to other people's on YouTube. Highly appreciable.

is truncating division also called as floor division