Operator |
Meaning
|
x+y |
Returns the sum of x and y.
|
x-y |
Returns the difference between x and y.
|
x*y |
Returns the product of x and y.
|
x/y |
Returns the number of x divided by y.
|
x//y |
Returns the quotient of x divided by y.
|
x%y |
Returns the remainder of x divided by y.
|
x&&y |
If both x and y are True, the result is True.
|
x||y |
If one of x and y is true, the result is true.
|
x&y |
Returns the result of x bitwise AND y.
|
x|y |
Returns the result of x bitwise OR y.
|
x^y |
Returns the result of x bitwise XOR y.
|
x**y |
Returns xy.
|
x>y |
If x is greater than y, it returns True.
|
x<y |
If x is less than y, it returns True.
|
x==y |
If x is equal to y, it returns True.
|
x<=y |
If x is greater than y, it returns False.
|
x>=y |
If x is less than y, it returns False.
|
x!=y |
If x is equal to y, it returns False.
|