This looks like a job for (PLEASE HELP)


#1



Getting an error that full_time_wage on line 20 is taking two arguments when it can only take one. I'm only putting in the 10 inside the parentheses, though? (edit: line 20 is the last line)


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 calculate_wage(self, hours): 
        self.hours = hours
        return hours*12.00
    def full_time_wage(hours): 
        self.full_time_wage = full_time_wage
        return super(PartTimeEmployee, self).calculate_wage(hours)

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


#2

Does not look right. Consider.


#3

I didn't add that until it started giving me an error that full_time_job was not defined. It still doesn't go through without it though


#4

got it, but I'm not quite sure why it's right. Could you please help me understand?

class Employee(object):
    """Models real-life employees!"""
    def __init__(self, employee_name, hours):
        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 calculate_wage(self, hours):
        self.hours = hours
        return hours * 12.00
    def full_time_wage(self, hours):
        return super(PartTimeEmployee, self).calculate_wage(hours)

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