part igetting started with python both of these commands are used in emergency situations only the firstsys exit()provides special error-handling features that you discover in the secondos _exit()exits python without performing any of the usual cleanup tasks in both casesyou must import the required moduleeither sys or osbefore you can use the associated command consequentlyto use the sys exit(commandyou actually use this codeimport sys sys exit(you must provide an error code when using os _exit(because this command is used only when an extreme error has occurred the call to this ommand will fail if you don' provide an error code to use the os exit(commandyou actually use this code (where the error code is )import os os _exit( discusses importing modules in detail for nowjust know that these two commands are for special uses only and you won' normally use them in an application