Skip to content

Instantly share code, notes, and snippets.

@Abhishek-Srivastava
Last active December 17, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abhishek-Srivastava/5520217 to your computer and use it in GitHub Desktop.
Save Abhishek-Srivastava/5520217 to your computer and use it in GitHub Desktop.
# A class performing basic maths
class Do_Mathematics:
def __init__(self, a, b):
self.a = a
self.b = b
def sum(self):
return self.a+self.b
def sub(self):
return self.a-self.b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment