14. this looks like a job for.... HELP


#1




Hi, this exercise is troubling me :ok_hand: please help


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):
        def full_time_wage(self, hours):
            return super(PartTimeEmployee, self).calculate_wage(hours)

milton = PartTimeEmployee("milton")
print milton.full_time_wage(10)


#2

This line should not need to be repeated.


#3

OH MY GOD.... this is embarrasing... thanks :blush:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.