14. This Looks Like a Job For... Syntax Warning


#1

I am receiving the correct answer, but with the following error:
“python:1: SyntaxWarning: import * only allowed at module level”

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)
  
milton = PartTimeEmployee("Milton")
print milton.full_time_wage(10)

#2

Hi @syzkenysa,

You must have some additional code. For example, there must be a definition for the Employee class. Please post all of the code that you have for this exercise, so we can take a look at it.


#3

Hi @syzkenysa,
Ignore it, I got the same, we did not import anything. It’s probably just a bug in the user interface.


#4

Yes, in fact it does appear to be a bug in Codecademy’s submission correctness test (SCT) for this exercise. If, after having submitted a correct solution, you submit it again, the message regarding the SyntaxWarning should not occur again.


#5

I just ignored it because it made no sense and then clicked next.


#6

When submitted a second time it doesn’t occur. Thank you!


#7