Question #858

What is the output of the code snippet below?
print(bool(exit(0)))

The Python interpreter will find the exit(0) function when it parses the code before executing print() and exit the program. Nothing will be printed. (help.semmle.com/wiki/pages/viewpage.action?pageId=29394142)


Comment on Disqus:

Comment on Twitter:

Question difficulty: šŸ”µšŸ”µšŸ”µšŸ”µšŸ”µ


Similar questions: