Created
January 26, 2021 09:42
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
@property | |
def score(self): | |
print("Getting score...") | |
return self.__score | |
@score.setter | |
def score(self, new_val): | |
print("Setting new value...") | |
self.__score = new_val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment