
class Triangle(object):
    number_of_sides=3
    def __init__(self, angle1, angle2, angle3):
        self.angle1=angle1
        self.angle2=angle2
        self.angle3=angle3

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

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


my_triangle=Triangle(100,70,10)
print my_triangle.number_of_sides
print my_triangle.check_angles()


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


# 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


# class Shape(object):
#     """Makes shapes!"""
#     def __init__(self, number_of_sides):
#         self.number_of_sides = number_of_sides
#
# # Add your Triangle class below!
# class Triangle(Shape):
#     def __init__(self,side1,side2, side3):
#         self.side1=side1
#         self.side2=side2
#         self.side3=side3
#


# class Customer(object):
#     """Produces objects that represent customers."""
#     def __init__(self, customer_id):
#         self.customer_id = customer_id
#
#     def display_cart(self):
#         print "I'm a string that stands in for the contents of your shopping cart!"
#
# class ReturningCustomer(Customer):
#     """For customers of the repeat variety."""
#     def display_order_history(self):
#         print "I'm a string that stands in for your order history!"
#
# monty_python = ReturningCustomer("ID: 12345")
# monty_python.display_cart()
# monty_python.display_order_history()


#real world example
# class ShoppingCart(object):
#     """Creates shopping cart objects
#     for users of our fine website."""
#     items_in_cart = {}
#     def __init__(self, customer_name):
#         self.customer_name = customer_name
#
#     def add_item(self, product, price):
#         """Add product to the cart."""
#         if not product in self.items_in_cart:
#             self.items_in_cart[product] = price
#             print product + " added."
#         else:
#             print product + " is already in the cart."
#
#     def remove_item(self, product):
#         """Remove product from the cart."""
#         if product in self.items_in_cart:
#             del self.items_in_cart[product]
#             print product + " removed."
#         else:
#             print product + " is not in the cart."
#
# my_cart=ShoppingCart("Aaron")
# my_cart.add_item("book",1.00)
# my_cart.add_item("toy car",10.00)



# class Animal(object):
#     """Makes cute animals."""
#     is_alive = True
#     health="good"
#     def __init__(self, name, age):
#         self.name = name
#         self.age = age
#     # Add your method here!
#
#     def description(self):
#         print self.name
#         print self.age
#
# hippo=Animal("jeffry",7)
# sloth=Animal("jo",8)
# ocelot=Animal("Lance",1)
#
# print hippo.health
# print sloth.health
# print ocelot.health
# ocelot.description()

# class Animal(object):
#     """Makes cute animals."""
#     is_alive = True
#     def __init__(self, name, age):
#         self.name = name
#         self.age = age
#     # Add your method here!
#
#     def description(self):
#         print self.name
#         print self.age
#
# zebra=Animal("jeffry",7)
# zebra.description


# class Animal(object):
#     def __init__(self, name):
#         self.name=name
#
# zebra=Animal("Jeffrey")
# print zebra.name

# class Fruit(object):
#     """A class that makes various tasty fruits."""
#     def __init__(self, name, color, flavor, poisonous):
#         self.name = name
#         self.color = color
#         self.flavor = flavor
#         self.poisonous = poisonous
#
#     def description(self):
#         print "I'm a %s %s and I taste %s." % (self.color, self.name, self.flavor)
#
#     def is_edible(self):
#         if not self.poisonous:
#             print "Yep! I'm edible."
#         else:
#             print "Don't eat me! I am super poisonous."
#
# lemon = Fruit("lemon", "yellow", "sour", False)
#
# lemon.description()
# lemon.is_edible()
# print lemon.flavor