So I created the code for this lesson and is passes:
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 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") print milton.full_time_wage(10)
but what I don’t understand is why my super of calculate_wage only calls hours instead of both self and hours like the one in the base class. Also, the program allowed this code to pass but the console showed the error “python:1: SyntaxWarning: import * only allowed at module level”. What does this mean?