Access to global variables from a module in Python?
Access to global variables from a module in Python? Question: let’s start with a basic code that uses a global variable : def fun(): print(gvar) gvar = 3 fun() that of course prints “3” in the console. Then, I move my function “fun” in a module “mymod”, and do : from mymod import * gvar=3 …