logical and operation in python code example
Example 1: x and y in python
x = 10
y = 12
print('x > y is',x>y)
print('x < y is',x<y)
print('x == y is',x==y)
print('x != y is',x!=y)
print('x >= y is',x>=y)
print('x <= y is',x<=y)
Example 2: arithmetic operators in python
Arithmetic operators: Arithmetic operators are used to perform mathematical
operations like addition, subtraction, multiplication and division.
Example 3: logical operators python
Python uses and and or conditionals.
i.e.
if foo == 'abc' and bar == 'bac' or zoo == '123':
Example 4: logical operator in python
0 and 3
3 and 0
3 and 5