title: Calling an object of a method of a class within another method of the same class
body: <p>I was trying to call the objects of a method in one of my classes within antoher method of the same class. Below you can find a small example of how I tried to do it:</p>
  <pre><code>class example_class():
      
      def some_method(self):
          #... calculate something ...
          a = 1 
          b = 2
  
      def second_method(self):
          call = self.some_method()
          c = call.a + call.b
  </code></pre>
  <p>If I do this, I get the error: &quot;'NoneType' object has no attribute 'a'&quot;.
  I am sure this is a fearly basic problem, but I am using classes, objects and methods for the first time and would really appreciate the help!</p>
  <p>Thank you in advance and stay safe!</p>