human
I am working on the file "2. Objects and types.ipynb".
The first task is:
Now let's give our Car class some methods. We'll redeclare the class, this time with methods.
Can you write Python code for it?

What is a the Python code you requested?
assistant
#Here is the Python code you requested.

class Car:
    """
    A small passenger automobile.
    """
    
    driver = None              # By default, there is no driver.
    number_of_passengers = 0   # By default, the car is empty.

    def honk(self):
        """
        What noise does a car make?
        """
        print 'beep beep!'
        
    def count_passengers(self):
        """
        Get the number of passengers in this car.
        """
        return self.number_of_passengers