In python, Comparison Operators Compare the value of two or more Operands and return the result on the basis of Boolean "True or False". Simply, Comparison Operators are used to compare one value to another.
Arithmetic Operators are used with numeric values to perform common mathematical calculations. In python, With the help of arithmetic operators we can perform these operations: 1.Addition (x+y) 2.Subtraction (x-y) 3.Multiplication (x*y) 4.Division (x/y) 5.Modulus (x%y) 6.Exponentiation (x**y) 7.Floor Division (x//y) Most of the students gets confused with Modulus,Exponentiation and Floor division so please keep it in mind: 1.Modulus return the remainder values. 2.Exponentiation return power value of x. 3.Floor Division return the values before the floating Point. Hop...
Comments
Post a Comment