# 13 Output correct, but the course tells me it is wrong

#1

13

Oops, try again. It looks like your PartTimeEmployee's calculate_wage method doesn't override Employee's calculate_wage method.

The output is correct, put Python states that it is wrong.

``````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

class PartTimeEmployee(Employee):
def calculated_wage(self,hours):
self.hours = hours
return hours*12.00

bob=PartTimeEmployee("Bob")
print bob.calculated_wage(10)``````

#2

HI that method

``````def calculated_wage(self,hours)
....``````

should be calculate_wage instead of calculated_wage and don't forget to change it here too..

``print bob.calculated_wage(10)``

#3

hy wizmarco

iam stuck at 12/18 (Inheritance Syntax)

class Triangle():
def init(self, angle1, angle2, angle3):
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3

``````number_of_sides = 3

def check_angles(self):
if self.angle1+self.angle2+self.angle3 == 180:
return True
else:
return False``````

my_triangle = Triangle(45, 45, 90)
print my_triangle.number_of_sides
print my_triangle.check_angles()

class Equilateral(Triangle):
angle = 60
def init(self):
self.angle1 = self.angle
self.angle2 = self.angle
self.angle3 = self.angle

#5
``````class Triangle(object):
def __init__(self, angle1, angle2, angle3):
selfangle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
number_of_sides = 3
def check_angles(self):
if self.angle1 + self.angle2 + self.angle3 == 180:
return True
else:
return False
my_triangle = Triangle(90, 45, 45)
print my_triangle.number_of_sides
print my_triangle.check_angles()``````

hello @dataace98389
try this code it think it works

#6

and i think this is not needed