Created
January 26, 2021 09:42
-
-
Save Polaris000/ea1d708e87cf11b2cd0ad42a28560a21 to your computer and use it in GitHub Desktop.
This file contains hidden or 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