Operators in Paython

Advertisements

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

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Google Advertisements


Buy Websites 9999595223

Buy Fresh and Payment Receive Media.net Account with Website. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements