title: How do I access Class member variables in Python?
body: <pre><code>class Example(object):
      def the_example(self):
          itsProblem = "problem"
  
  theExample = Example()
  print(theExample.itsProblem)
  </code></pre>
  
  <p>How do I access a class's variable?  I've tried adding this definition:</p>
  
  <pre><code>def return_itsProblem(self):
      return itsProblem
  </code></pre>
  
  <p>Yet, that fails also.</p>