Importing libraries in Python

Table of Contents

Best practice

Best practices for organizing your imports:

  • Group your imports at the beginning of the file.
  • Organize them into three groups: standard library modules, third-party modules, and your own modules.
  • Within each group, sort the imports alphabetically.

links

social