Skip to content

Instantly share code, notes, and snippets.

@nafu
Last active December 13, 2015 17:59
Show Gist options
  • Save nafu/4952475 to your computer and use it in GitHub Desktop.
Save nafu/4952475 to your computer and use it in GitHub Desktop.
Definitions
def a(x, y, z):
if x:
return y
else:
return z
def b(q, r):
return a(q>r, q, r)
print(a(False, 2, 3))
print(b(3, 2))
print(a(3>2, a, b))
print(a)
print(b)
print(b(a, b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment