this is my homework assignment, I saw it posted on the website before, but it looks like it was unsolved and I got a different error message than a person asking that questi
Look at the declaration of Executive.__init__:
def __init__(self, name, wage, yearlyBonus):
Nowhere in there does it declare a variable named salary. But when you call the superclass constructor,
Employee.__init__(self, name, salary)
you are asking Python to pass the value of a variable named salary as the third parameter. Python is just complaining that this variable does not exist.
I imagine you can figure out how to fix it from there. :-)