I have been trying to sort this out since yesterday.
My original ideas did not work but I found a question about the same exercise in the forum and copied the corrected code as below. The result as can be seen is still giving me what seems to be the same error I have been struggling with. Please explain what I have missed.
Traceback (most recent call last):
File "python", line 17, in
TypeError: init() should return None, not 'str'
I expected to be able to get no errors and move on to the next exercise.
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 __init__(self, hours): self.hours = hours return hours * 12.00 def full_time_wage(self,hours): return super(PartTimeEmployee, self).calculate_wage() milton = PartTimeEmployee("aa") print milton.full_time_wage(10)