What am I doing WRONG?


#1



Intro to Classes: https://www.codecademy.com/courses/python-intermediate-en-WL8e4/2/4?curriculum_id=4f89dab3d788890003000096

Says: "Oops, try again. milton.full_time_wage(0) caused the following exception: calculate_wage() takes exactly 2 arguments (1 given)"

Someone please help me


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


#2

Before calling the super class on this line

You need to include this statement self.hours because hours is one of the arguments of the full_time_wage. function

After that your code should work perfect! :sweat_smile: :grinning:


#3

Right here:

You should call hours.

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

Hope this helps! :smile:


#4

Sorry for the very late response, guys. Thanks for helping me out, @bayoishola20 and @bandit!


#5

It's fine.

Have fun coding! :slight_smile: