I've cleared the exercise. What I want to understand is this: Why can't the print function within the method work? Below is my code. I cant make the total wage come out automatically from the method.
In other words, how do I make Billy.calculate_wage(5) print 60.0 in the output?
Replace this line with your code. 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 print hours* 12.00 Billy = PartTimeEmployee("Billy") #Remember to add the right number of arguments. For example, this method demands 2 which are self and name. So put the name!!# Billy.calculate_wage(5)