Skip to content

Instantly share code, notes, and snippets.

@tunglam14
Created June 3, 2013 09:58
Show Gist options
  • Save tunglam14/5697225 to your computer and use it in GitHub Desktop.
Save tunglam14/5697225 to your computer and use it in GitHub Desktop.
def sqrt(n, i=1):
if n == i:
return n ** 0.5
else:
return (i + sqrt(n, i+1)) ** 0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment