This looks like a Job For


Hi Guys,

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)


i don't see anywhere in the instructions, that PartTimeEmployee needs an __init__() method?


That fixed it. Thank you.


because you removed init from PartTimeEmployee, when creating an instance the parent class (Employee) init method is caleld instead.


Hi, hobbitgill
Do you still remember how to fix it? thanks
I am meeting the same issue.


given my answer solved his problem, you should be able to solve it as well using my answer? Otherwise, make a new topic please