I am declaring global variable in sample1.py like this and updating
sample1.py
var = 0
def foo():
global var
var = 10
In sample2.py I am importing this global variable
sample2.py
from sample1 import var
def foo1():
print var
but, still it is printing "0" instead of "10". If print it in sample1.py it is printing "10".
What went wrong?