Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Importing Modules

A Python module is a code object loaded into the Python program by the process of importing. Suppose we have a module file my_vars.py, the definitions in this file can be accessed in a different file using the appropriate import command:

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content