{ Debugging and Modules Exercises. }

  • What is a module?
  • List three ways to import a module in Python.
  • What is the purpose of importing?
  • List three examples when you would use the random module.
  • What is an ImportError?
  • When would using an OrderedDict be useful?
  • When would using a defaultdict be useful?
  • What is the purpose of the following code:

    if __name__ == '__main__':
        pass
    

For solutions to these exercises, click here.

Head Home