trip txt''papers''remember to remember txt''sweet anticipation png''today txt''topics txt''unnamed jpg'how to remove python directorywe made file named 'readme txtinside our folder christmas to delete this filewe use the method remove(os chdir(' :\\users\\lifei\\desktop\\christmas 'os listdir(output['readme txt' built-in exceptions illegal operations can raise exceptions there are plenty of built-in exceptions in python that are raised when corresponding errors occur we can view all the built-in exceptions using the built-in local(function as print(dir(locals()['__builtins__'])followslocals()['__builtins__'will return module of built-in exceptionsfunctionsand attributes dir allows us to list these attributes as strings some of the common built-in exceptions in python programming along with the error that cause them are listed belowexception assertionerror fails cause of error raised when an assert statement attributeerror raised when attribute assignment or reference fails raised when the input(function hits end-of-file condition raised when floating point operation fails raise when generator' close(method is called raised when the imported module is not found raised when the index of sequence is out of range raised when key is not found in dictionary raised when the user hits the interrupt key (ctrl+ or deleteeoferror floatingpointerror generatorexit importerror indexerror keyerror keyboardinterrupt