Syntax warning


#1

python:1: SyntaxWarning: import * only allowed at module level . Here is the code

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( hours)

venu = Employee(“venu”)
milton = PartTimeEmployee(venu )
print milton.full_time_wage(12)


#2

That’s not really a question, but has to do with how codecademy runs your code. Since it’s a warning, ignore it unless something is misbehaving.


#3

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