in Python by (32.2k points)
How can you share global variables across modules?

1 Answer

0 votes
by (32.2k points)

To share global variables across modules within a single program, create a special module. Import the config module in all modules of your application. The module will be available as a global variable across modules.

Related questions

0 votes
asked Jun 28, 2020 in Python by Robindeniel (20.8k points)
...