exit(what we have been using sys exit(rcwhat we should use "return code"an integer everything was ok something went wrong also tucked away in the sys module is the sys exit(function up to this point we have been using the exit(function to quit our scripts early however this function is something of filthy hack and sys exit(provides superior quitting and an extra facility we will be able to make use of the sys exit(function takes an integer argument this is the program' "return codewhich is very short message back to the operating system to indicate whether the program completed successfully or not return code of means "successa non-zero return code means failure some programs use different non-zero codes for different failures but many (most?simply use value of to mean "something went wrongif your script simply stops because it reached the end then python does an automatic sys exit(