Skip to content

Instantly share code, notes, and snippets.

@goyalrohit
Created February 7, 2018 10:57
Show Gist options
  • Save goyalrohit/baa5c0b62957ddd4fed528d3ae9b2a03 to your computer and use it in GitHub Desktop.
Save goyalrohit/baa5c0b62957ddd4fed528d3ae9b2a03 to your computer and use it in GitHub Desktop.
def addition(i):
def adds(j):
return i + j
return adds
result_add = addition(30)
print result_add(20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment