Skip to content

Instantly share code, notes, and snippets.

@p--q
Created December 31, 2016 12:20
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 p--q/fe6bfa1e4fd2be3d8e33fafd2e9da9be to your computer and use it in GitHub Desktop.
Save p--q/fe6bfa1e4fd2be3d8e33fafd2e9da9be to your computer and use it in GitHub Desktop.
test2.py
def gcd(x, y):
if y == 0:
return x
else:
return gcd(y, x % y)
print(gcd(24, 9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment