t349.py 236 B

12345678910111213
  1. print bool(1)
  2. print bool(True)
  3. print bool([1, 2, 3])
  4. print bool(0)
  5. print bool(False)
  6. print bool(None)
  7. print bool([])
  8. print any([1, 0, 0])
  9. print any([False, 0, 0])
  10. print any([])
  11. print all([])
  12. print all([1, 0, 1])
  13. print all([1, True, 1])