Skip to content

Instantly share code, notes, and snippets.

@hcosta
Created December 20, 2018 13:41
Show Gist options
  • Save hcosta/fa87819053b8109e5902ea6a8d354b0f to your computer and use it in GitHub Desktop.
Save hcosta/fa87819053b8109e5902ea6a8d354b0f to your computer and use it in GitHub Desktop.
class Calculator:
def __init__(self):
self.value = 0
def add(self, a, b):
self.value = a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment