Logical Operators
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:
- Code
- Output
# Printing logical conditions
print(3 < 5)
print(3 > 5)
print(8 == 3)
print(8 != 3)
True
False
False
True