SiteMap  | About    

Global variables in Python

A global variable is a variable which is accessible in multiple scopes. In Python, it is better to use a single module to hold all the global variables you want to use and whenever you want to use them, just import this module, and then you can modify that and it will be visible in other modules that do the same.

Create a Global module

Create a Python program file to access global variable

Create another Python program to test value is changed or not (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.