I've seen questions asked on this before, but I'm not able to recreate the alteration of global variables within a class function:
test = 0
class Testing:
def add_one():
global test
test += 1
when I type in
Testing.add_one
print (test)
It prints "0". How do I get the function in the class to add one to test?
Thank you!
