-
-
Save mike11339/42d14cbb10ab8960254414959cac49c9 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
print(Kid.__mro__) | |
# (<class '__main__.Kid'>, <class '__main__.Dad'>, <class '__main__.Mum'>, <class 'object'>) | |
kid = Kid() | |
print(kid.eye_color) | |
# blue | |
print(kid.city) | |
# Amsterdam | |
kid.swim() | |
# I can swim | |
kid.dance() | |
# I can dance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment