Skip to content

Instantly share code, notes, and snippets.

@molarmanful
Last active September 20, 2019 10:04
Show Gist options
  • Save molarmanful/fc362cadbf5445a1d7a195fe8f0ce4d4 to your computer and use it in GitHub Desktop.
Save molarmanful/fc362cadbf5445a1d7a195fe8f0ce4d4 to your computer and use it in GitHub Desktop.
def add(x, y):
return x + y
# alternative syntax that does the same thing
add = lambda x, y: x + y
add(1, 3) # => 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment