snippets.txt 443 B

12345678910111213141516171819202122232425
  1. # Comparisons:
  2. # Equal: ==
  3. # Not Equal: !=
  4. # Greater Than: >
  5. # Less Than: <
  6. # Greater or Equal: >=
  7. # Less or Equal: <=
  8. # Object Identity: is
  9. # False Values:
  10. # False
  11. # None
  12. # Zero of any numeric type
  13. # Any empty sequence. For example, '', (), [].
  14. # Any empty mapping. For example, {}.
  15. condition = False
  16. if condition:
  17. print('Evaluated to True')
  18. else:
  19. print('Evaluated to False')