Created
March 2, 2017 20:41
-
-
Save yhaskell/a2b65000c970284aa4744bb13000921e 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
class Locker: | |
__value = None | |
def set(self, value): | |
self.__value = value | |
def get(self): | |
return self.__value | |
locker = Locker() | |
locker.set(42) | |
print (locker.get()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment