Back
Close

Computing with Data

elgeish
576.8K views

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:

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io