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

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.