$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #210

What is the output?

print(any([]), all([]))
  1. False False
  2. True True
  3. False True
  4. True False
any needs at least one truthy item; all is vacuously true when there is nothing to fail.
Play Problem Solving ▸