Operators in Paython


Prev Tutorial Next Tutorial

Operators in Python

Operators are the special symbol which is used with operands and generate output.

OperatorsDescription
//Perform Floor division(gives integer value after division)
+Used for addition
-Used for subtraction
*Used for Multiplication
/Used for Dividion
%To return remainder
**Perform exponent(raise to power)
<Less than
>Greater than
<=Less than or equal to
>Greater than or equal to
==Equal to
!=not equal to
<>Not equal to(same like !=)
=Assignment
/=Divide and Assign
+=Add and assign
-=Subtract and Assign
*=Multiply and assign
%=Modulus and assign
**=Exponent and assign
//=Floor division and assign
andLogical AND(When both conditions are true output will be true)
orLogical OR (If any one condition is true output will be true)
notLogical NOT(Compliment the condition i.e., reverse)
inReturns true if a variable is in sequence of another variable, else false.
not inReturns true if a variable is not in sequence of another variable, else false.
isReturns true if identity of two operands are same, else false
is notReturns true if identity of two operands are not same, else false.

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements