operator and in python code example
Example 1: operators in python
# Python Operators
Operator Name Example
+ Addition x + y
- Subtraction x - y
* Multiplication x * y
/ Division x / y
% Modulus x % y
** Exponentiation x ** y
// Floor division x // y
Example 2: and in python
#And opreator in python
a = 12
b = 56
print(a and b * 12)
Example 3: logical operators python
Python uses and and or conditionals.
i.e.
if foo == 'abc' and bar == 'bac' or zoo == '123':
# do something