Skip to main content

Logical Operators

Conditional Statmenets

Logical Operators allow us to determine if a specific condition is true or false. These operators include ==, !=, <, >, <=, and >=. Below are some examples of using these operators:

# Printing logical conditions
print(3 < 5)
print(3 > 5)
print(8 == 3)
print(8 != 3)