title: Setting and retrieving default value for an attribute in a class
body: <p>I am using python in a google colab notebook. I created a Restaurant class and set the default value for an attribute number_served = 0. Also created an instance, new_restaurant, of the class. I get an error when I try to retrieve the attribute's value for the instance:</p>
  <pre><code>class Restaurant:
    &quot;&quot;&quot;creating Restaurant class&quot;&quot;&quot;
    def __init__(self, name, cuisine_type):
      self.name = name
      self.cuisine_type = cuisine_type
      self.number_served = 0
    
  new_restaurant = ('Secret Sky', 'coffee &amp; sandwiches')
  new_restaurant.number_served
  </code></pre>
  <hr />
  <p>Error message:</p>
  <blockquote>
  <p>AttributeError                            Traceback (most recent call last)
   in ()
  7
  8 new_restaurant = ('Secret Sky', 'coffee &amp; sandwiches')
  ----&gt; 9 new_restaurant.number_served</p>
  <p>AttributeError: 'tuple' object has no attribute 'number_served'</p>
  </blockquote>