the dir function docstrings__doc__ pydocthe help function pydochtml reports beyond docstringssphinx the standard manual set web resources published books common coding gotchas summary test your knowledgequiz test your knowledgeanswers test your knowledgepart iii exercises part iv functions and generators function basics why use functionscoding functions def statements def executes at runtime first exampledefinitions and calls definition calls polymorphism in python second exampleintersecting sequences definition calls polymorphism revisited local variables summary test your knowledgequiz test your knowledgeanswers scopes python scope basics scope details name resolutionthe legb rule scope example the built-in scope the global statement xiv table of contents