14/18This Looks Like a Job For


#1

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
        print hours * 12.00
    def full_time_wage(self,hours):
        return super((PartTimeEmployee, self).calculate_wage()
milton = PartTimeEmployee("aa")
print milton.full_time_wage()


#3

These two lines should be swapped. print after return is unreachable. Still looking for the syntax error. Will test in the lesson.

Should be,

def calculate_wage(self, hours):

Note that the error was in the function, not the statement where it was thrown.


#4

thank you , it really here error , also one more ( error and miss arguments/


#6

I'm not sure that this is the error, but where is the closing parenthesis?


#7

I believe the OP did spot both errors in that line:

return super(PartTimeEmployee, self).calculate_wage(hours)

#8

A post was split to a new topic: Can you help me?


#15