Bug in lesson 8


#1

Submitting with the final line of print hippo.description returns correct, instead of the actually correct requirement of print hippo.description()


#2

for some reason, that's the format they want.
see my thread on "9/18 - calling class methods"

ATM, am still waiting for a reply on that, but would guess that it has to do with where the method is placed in the definition of the class.

".description" is in the main section of class, whereas it ought to be in a separate def description(self):

here is my code:

    class Animal(object):
    """Makes cute animals."""
    is_alive = True                                          
                  # I'm guessing you put your description here?
    def __init__(self, name, age):
        self.name = name
        self.age = age
    # Add your method here!
    def description(self):
        print self.name
        print self.age

hippo = Animal("larry",3)
hippo.description()

#3
class Animal(object):
"""Makes cute animals."""
is_alive = True
def __init__(self, name, age):
    self.name = name
    self.age = age
# Add your method here!
def description(self):
    print self.name
    print self.age
hippo.description('Henry', 2)

Hello, Look at the last couple lines in my solution here, you are still calling the class when the instructions asked you to call the method.


#4

I have tried both of these on but niether works


#5

The first one works.