Skip to content

Instantly share code, notes, and snippets.

@jackpordi
Created September 11, 2019 22:56
Show Gist options
  • Save jackpordi/d1c20a101fd3bc485faf66395d032976 to your computer and use it in GitHub Desktop.
Save jackpordi/d1c20a101fd3bc485faf66395d032976 to your computer and use it in GitHub Desktop.
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