Last active
September 20, 2019 10:04
-
-
Save molarmanful/fc362cadbf5445a1d7a195fe8f0ce4d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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