python global variables in class code example
Example 1: python class variables make blobal
x = 10
class myClass1():
global x # This takes the variable x outside this class
Example 2: python global variables
global var1
var1 = 'whatever'
x = 10
class myClass1():
global x # This takes the variable x outside this class
global var1
var1 = 'whatever'