title: TypeError: 'bool' object is not callable
body: <p>I am brand new to python. I got a error</p>
  
  <pre><code>while not cls.isFilled(row,col,myMap):
  TypeError: 'bool' object is not callable
  </code></pre>
  
  <p>Would you please instruct how to solve this issue? 
  The first "if" check is fine, but "while not" has this error.</p>
  
  <pre><code>def main(cls, args):
          ...
          if cls.isFilled(row,col,myMap):
              numCycles = 0
  
          while not cls.isFilled(row,col,myMap):
              numCycles += 1
  
  
  def isFilled(cls,row,col,myMap):
          cls.isFilled = True
          ## for-while
          i = 0
          while i &lt; row:
              ## for-while
              j = 0
              while j &lt; col:
                  if not myMap[i][j].getIsActive():
                      cls.isFilled = False
                  j += 1
              i += 1
          return cls.isFilled
  </code></pre>