What does sys.exit() do in Python?
Correct answer
B. Raises SystemExit to terminate the program
6 views
B. Raises SystemExit to terminate the program
6 views
sys.exit raises SystemExit, which ends the program unless caught.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.