Question #896

What is the output of the code snippet below?
print(any([exit(0), True]))

Nothing will be printed. exit(0) will be found before the function any() can return True or False . (python101.pythonlibrary.org/chapter20_sys.html#sys-exit)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: