title: Instance of has no member
body: <p>Maybe I'm getting something basic confused but I cant seem to work out how to fix this issue.</p>
  
  <p><a href="https://i.stack.imgur.com/BCW1F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BCW1F.png" alt="enter image description here"></a></p>
  
  <p>The compiler gives me </p>
  
  <p><code>Traceback (most recent call last):
    File "python", line 153, in &lt;module&gt;
    File "python", line 90, in finish
    File "python", line 25, in registered
  AttributeError: 'Marathon' object has no attribute 'runnerList'
  </code></p>
  
  <p>Which all seem to be the same issue. Surely the instance does have members. I'm not sure why it thinks it doesn't.</p>
  
  <pre><code>class Marathon:
  
  # Creator
  # -------
  
  runnersList = []
  timesList = []
  
  def __init__(self):
    """Set up this marathon without any runners."""
  
  # Inspectors
  # ----------
  
  # These are called anytime.
  
  def registered(self, runner):
    """Return True if runner has registered, otherwise False."""
    for item in self.runnerList:
      if item == runner:
        return True
    else:
      return False
  </code></pre>