Last active
August 29, 2015 14:16
-
-
Save benjaminsavoy/6539ce2b6871927747fa to your computer and use it in GitHub Desktop.
This file contains 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 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