operations in python code example
Example 1: python larger or equal
# To test if something is larger or equal use '>='
5 >= 10
# Output:
# False
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 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 4: x and y in python
x > y is False
x < y is True
x == y is False
x != y is True
x >= y is False
x <= y is True