any(x) and not all(x)

Question Q2.4.5

For what iterable sequences, x, does the expression

any(x) and not all(x)

evaluate to True?


Solution Q2.4.5