I am having an issue with my code and I cannot figure it out for love nor money. The error message in the console is as follows:
Traceback (most recent call last):
File "python", line 19, in
File "python", line 14, in init
TypeError: can't multiply sequence by non-int of type 'float'
And I have no idea why, my code is below.
Any help would be fantastic!!
Thank you in advance.
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(hours) milton = PartTimeEmployee("milton") print milton.full_time_wage(10)