Skip to content

Instantly share code, notes, and snippets.

@michaeltennant4554
Last active January 25, 2018 10:37
Show Gist options
  • Save michaeltennant4554/d9753e608d010cf34a34f966ab51ff71 to your computer and use it in GitHub Desktop.
Save michaeltennant4554/d9753e608d010cf34a34f966ab51ff71 to your computer and use it in GitHub Desktop.
class dog:
health = 50
def getSlashed(self)
self.health = self.health - 8
def sayHealth(self):
print("my health is " + str(self.health))
jimmy = dog()
tony = dog()
tony.gethit()
tony.sayhealth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment