title: Python Class calling one function to another
body: <p>I have just started OOPS and am completely new to it. I have a very basic question regarding the different ways I can call a function within another function in same class.</p>
  <pre><code>class StuffAnimal:
  def __init__(self,name,color,weight,issitting):
      self.name = name
      self.color = color
      self.weight = weight
      self.issitting = issitting
      self.x = 0
      self.y = 0
      self.situation = &quot; &quot;
      
      
  def standup (self):
      if self.issitting == True :
          print(&quot;the stuff toy is sitting&quot;)
          return &quot;sit&quot;
      else :
          print (&quot;the stuff toy is not sitting&quot;)
          return &quot;notsit&quot;
      
  def move_teddy (self):
      self.situation = standup(self.issitting)
      if self.situation == 'sit' :
          print (&quot;teddy is not in the situation to move please change issitting to True&quot;)
          
      elif self.situation == 'notsit' :      
          print (&quot;teddy is in the situation to move please give cordinates&quot;)
          self.x = int(input(&quot;x cordinates : &quot;))
          self.y = int(input(&quot;y cordinates : &quot;))
          print(&quot;teddy moved to &quot;,self.x,self.y)
          
  </code></pre>
  <p>but when i tried to call the function I got the following error.</p>
  <pre><code>teddy.move_teddy()
  NameError: name 'standup' is not defined
  </code></pre>
  <p>This doesn't works. Can someone explain where did I go wrong.</p>
  <p>Thank you.</p>