12345678910111213141516171819202122232425 |
- # Comparisons:
- # Equal: ==
- # Not Equal: !=
- # Greater Than: >
- # Less Than: <
- # Greater or Equal: >=
- # Less or Equal: <=
- # Object Identity: is
- # False Values:
- # False
- # None
- # Zero of any numeric type
- # Any empty sequence. For example, '', (), [].
- # Any empty mapping. For example, {}.
- condition = False
- if condition:
- print('Evaluated to True')
- else:
- print('Evaluated to False')
|