Module 2

and

Requiring two conditions at once.

Both must be true

Sometimes you need two things to be true at the same time. The and operator combines two conditions. The result is true only when both are true.

Python
print(True and True)
print(True and False)
print(False and False)
True False False
Python
temperature = 25
humidity = 60
if temperature > 20 and humidity < 70:
    print("Comfortable")
Comfortable

What does True and False evaluate to?