The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #896
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)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) June 18, 2021
print(any([exit(0), True]))
True
Nothing will be printed.
False
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: