3. Falsy and truthy

It’s enough to use the variable to test for falsy or truthy.

Explicit comparisons like == True and == False add noise and can obscure what counts as an empty or missing value. A direct truthiness check is the idiomatic default, though explicit comparisons are still useful when you truly need the boolean value True or False and not just a truthy object.

3.1. Don’t do this

1is_male = True
2
3if is_male == True:
4    print('is male is true')

3.2. Do this

1is_male = True
2
3if is_male:
4    print('is male is true')