This looks like a job for... Someone who knows more that I do!


#1

The following code gets an error: Oops, try again. milton.full_time_wage(0) returned None instead of the correct value: 0
I don't understand why.
Any explanations?
Many thanks,
DD

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

#2

Gotcha!

Missing return (It was really obvious!).