14. This looks like a job for


I am not sure why this isn't working. The error is
Traceback (most recent call last):
File "python", line 17, in
TypeError: init() should return None, not 'str'

 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

class PartTimeEmployee(Employee):
    def __init__(self, hours):
        self.hours = hours
        return hours * 12
    def full_time_wage(self, hours):
        return super(PartTimeEmployee,self).calculate_wage(hours)
milton = PartTimeEmployee("Milton")
print milton.full_time_wage(10)


@phrygianballad your indentation for your init function is off. Fix it up so that it is only four spaces from the Class Employee. Then if you have any further problems, reply to me on this forum...

Barry Allen


For some reason when I copied and pasted my code, my indentation for the init function was off. It is not in my original code. I fixed it on this post. Still not sure whats wrong. Thanks Barry


Hey @phrygianballad,

It seems that your init function for the PartTimeEmployee Class returns hours * 12, but the init function shouldn't return anything. Try to eradicate that line from the code and see if it works.

Barry Allen


That worked! Thanks for the help Barry


You are very welcome @phrygianballad. Keep coding hard :smile:!