Created
September 11, 2019 22:56
-
-
Save jackpordi/d1c20a101fd3bc485faf66395d032976 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 Counter: | |
def __init__(self): | |
self.count = 0 | |
def increment(self): | |
self.count += 1 | |
def get_count(self): | |
return self.count | |
def print_count(self): | |
print(self.count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment