python class variables make blobal

Solutions on MaxInterview for python class variables make blobal by the best coders in the world

showing results for - "python class variables make blobal"
Emely
01 Sep 2020
1x = 10
2
3class myClass1():
4  global x # This takes the variable x outside this class