1some_global_variable
2
3class TestClass():
4 def run(self):
5 #we can access it by defining the variable as global inside the function
6 global some_global_variable
7 for i in range(10):
8 some_global_variable = 1
9 print(some_global_variable)