code: def match_extension(f):
      '''see if the path matches a extension'''
      (root,ext) = os.path.splitext(f)
      return ext.lower() in extensionf match_extension(f):
      '''see if the path matches a extension'''
      (root,ext) = os.path.splitext(f)
      return ext.lower() in extensions
docs: see if the path matches a extension