I'm getting the following error:
Traceback (most recent call last):
File "python", line 20, in
File "python", line 16, in full_time_wage
TypeError: calculate_wage() takes exactly 2 arguments (3 given)
It says I'm giving three arguments when the function expects two. The two arguments I'm passing are (milton,10). If I delete the 10 and just pass (milton) I get the error that I'm only passing one argument when two are expected. What am I doing wrong? Where is Python getting 1 + 1 = 3?
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(self,hours): return super(PartTimeEmployee, self).calculate_wage(self,hours) # Instance milton = PartTimeEmployee("Milton") print PartTimeEmployee.full_time_wage(milton,10)