This Looks Like a Job For...Help


Traceback (most recent call last):
File "python", line 19, in
File "python", line 17, in full_time_wage
AttributeError: 'super' object has no attribute 'caluclate_wage'

Trowing me error can someone help me solve this ?

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

print milton.full_time_wage(10)


you spelled calculate incorrectly when you call it in the super.


duh !!! Thanks buddy :slight_smile:


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