I have a function in a file example1.py which looks like:
def A():
global var
....
def B():
.....
return x
#calculations using var,function B
return var
def C(var):
....
return something
I want to import all functions into other file example2.py using
from example1 import *
I see function A is working fine in example2.py but function C is not returning the expected value. Whats wrong in my import?