class Critter: def __init__ (self, health=0, fatigue=0): self.health = health self.fatigue = fatigue # This method returns a string representation of the attributes of the # object. Automatically called whenever an object of this class is passed # to print. def __str__ (self): return "Health: "+ str(self.health) + "\tFatigue:" + str(self.fatigue) def move (self): self.fatigue = self.fatigue + 1 class Foo: def __init__ (self): self.num1 = 1 self.num2 = 20 def main (): barney = Critter (100,0) eric_cartman = Critter (10,20) barney.move() print barney print eric_cartman aFoo = Foo () print aFoo main ()