and operrratorr in python code example
Example 1: logical operator in python
# logical and operator
# return first operands if false otherwise second operands
0 and 3
# output = 0
3 and 0
# output = 0
3 and 5
# output = 5
Example 2: x and y in python
x + y = 19
x - y = 11
x * y = 60
x / y = 3.75
x // y = 3
x ** y = 50625