Loading…

How is it possible to share global variables across various modules?

In order to share global variables across different modules within a single program, you need to create a special module. After that, just import the config module in all of the modules of your application. This will make the module available as a global variable across all the modules.

Suggest An Answer

No suggestions avaliable!

Latest post from Python Interview Questions

Ask Question