Em help please. In theory this code should not work or accepted but it does work and was accepted.. Line 24, "return hours *20", do we need it? The impression I had was that, for this exercise, because line 8 already has " return hours * 20, hence line 24 is not needed. I had lots and lots of trials and improvement to get it accepted. hmmm
PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
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): self.hours=hours return super(PartTimeEmployee,self).calculate_wage(self,hours) #def full_time_wage(self,hours): a repeat of lines 15 to 17 #self.hours = hours #return super(PartTimeEmployee,self).calculate_wage(self,hours) class Full_Time_Employee(PartTimeEmployee): def full_time_wage(self,hours): self.hours = hours return hours*20 John = PartTimeEmployee("John") print John.calculate_wage(15)#hours =15 milton = Full_Time_Employee("milton") print milton.full_time_wage(10)#hours = 10 Replace this line with your code.