midterm review

Download Midterm Review

Post on 21-Jan-2016

31 views

Category:

Documents

0 download

Embed Size (px)

DESCRIPTION

Midterm Review. Python class code for Aristotle example – animal, cat, human, and knowledge classes class animal() : num_eyes = 2 num_teeth = 24 def __init__(self, e, t) : self.num_eyes = e self.num_teeth = t class cat(animal) : def __init__(self, c, l) : - PowerPoint PPT Presentation