This Looks Like a Job For -- three issues noted in console


#1



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


I am getting two traceback errors and a error that seems related to variable scope, but am unsure how to troubleshoot. Can you assist? Thanks!

Traceback (most recent call last):
File "python", line 21, in
File "python", line 17, in full_time_wage
NameError: global name 'full_time_wage' is not defined


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(full_time_wage, hours).calculate_wage()
            
PTmilton = PartTimeEmployee("milton")

print PTmilton.full_time_wage(10)


#2

Please disregard--I figured out the problem.


#3

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