Created
December 21, 2017 10:25
-
-
Save suguby/8e58ee17e467de7b2c25035b2fe4d046 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 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