Skip to content

Instantly share code, notes, and snippets.

@suguby
Created December 21, 2017 10:25
Show Gist options
  • Save suguby/8e58ee17e467de7b2c25035b2fe4d046 to your computer and use it in GitHub Desktop.
Save suguby/8e58ee17e467de7b2c25035b2fe4d046 to your computer and use it in GitHub Desktop.
class Cat:
def __init__(self, name):
self.name = name
self.mood = 50
self.fullness = 50
def sleep(self):
self.mood += 5
self.fullness -= 10
cat = Cat('Мурзик')
print(cat.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment