diff --git a/Programming_Languages/Python/Syntax/Lambdas_in_Python.md b/Programming_Languages/Python/Syntax/Lambdas_in_Python.md index a849594..a2dbf0e 100644 --- a/Programming_Languages/Python/Syntax/Lambdas_in_Python.md +++ b/Programming_Languages/Python/Syntax/Lambdas_in_Python.md @@ -15,10 +15,14 @@ They are most often used unnamed with the functional methods [map, filter and re Here is the two syntaxes side by side: ```js +// JavaScript + const double = (x) => x * x; ``` ```py +# Python + double = lambda x: x * x ```