Skip to content

Instantly share code, notes, and snippets.

@benjaminsavoy
Last active August 29, 2015 14:16
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 benjaminsavoy/6539ce2b6871927747fa to your computer and use it in GitHub Desktop.
Save benjaminsavoy/6539ce2b6871927747fa to your computer and use it in GitHub Desktop.
class Point
def __init__(self, x, y):
self._x = x
self._y = y
def to_string(self):
return str(self._x) + " + " + str(self._y) + "i"
def sum(x,y):
if x = y:
return x
else:
return sum(x,y-1) + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment