summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/builtin_allany.py
blob: 07052e42fe40478a0e17dff1c2d7609bc0c02c3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# test builtin "all" and "any"

tests = (
    (),
    [],
    [False],
    [True],
    [False, True],
    [True, False],
    [False, False],
    [True, True],
    range(10),
)

for test in tests:
    print(all(test))

for test in tests:
    print(any(test))