class Example(object):
def the_example(self):
itsProblem = "problem"
theExample = Example()
print(theExample.itsProblem)
How do I access a class's variable? I've tried adding this definition:
def return_itsProblem(self):
return itsProblem
Yet, that fails also.