Created
October 27, 2013 15:41
-
-
Save pgainda/7183979 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal(object): | |
is_alive = True | |
def __init__(self, name, age): | |
self.name = name | |
self.age = age | |
def description(self): | |
print self.name | |
print self.age | |
hippo = Animal("Jeffrey", 2) | |
print description(hippo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment