Python Developer Question:
Download Job Interview Questions and Answers PDF
How to share global variables across modules?
Answer:
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.
Download Python Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Please explain in Python what is slicing? | Tell me the use of // operator in Python? |