0 votes
in Python by
How can you share global variables across modules?

1 Answer

0 votes
by

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
0 votes
asked Oct 14, 2021 in Python by rajeshsharma
...