I really don't understand


#1

I really don't understand what happened here
class Employee(object):
"""Models real-life employees!"""
def init(self, employee_name):
self.employee_name = employee_name

def calculate_wage(self, hours):
    self.hours = hours
    return hours * 20.00

Add your code below!

class PartTimeEmployee(Employee):

 def full_time_wage(self, hours):
    return super(PartTimeEmployee, self).calculate_wage(hours)

milton = PartTimeEmployee("djsak")
print milton.full_time_wage(10)


#2

What is it you don't understand? Be specific in asking your questions.
Take a look here and asking questions correctly


#3

same problem.....

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.age
print self.name
hippo=Animal("hippo",3)
hippo.description()

error:
Oops, try again. Animal('Bagheera', 30).description() did not print 'Bagheera' and '30' on separate lines as expected, instead it printed: '30' and 'Bagheera'Preformatted text


#4

@iyanuoluwaayins,

def calculate_wage(self, hours):
    self.hours=hours
    return hours * 12.00

i guess you forgot to define the wage per hour for part time employees like this!

@suresh510, it is probably an indentation error!

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 = Animal("Hipster", 7)
hippo.description()

the exact code with indentations work perfectly for me!