12345678910111213 |
- print bool(1)
- print bool(True)
- print bool([1, 2, 3])
- print bool(0)
- print bool(False)
- print bool(None)
- print bool([])
- print any([1, 0, 0])
- print any([False, 0, 0])
- print any([])
- print all([])
- print all([1, 0, 1])
- print all([1, True, 1])
|