From 7afcd00f8eefb61445567c71af960b742a31f27b Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 17 Feb 2023 11:02:50 +0000 Subject: [PATCH] Autosave: 2023-02-17 11:02:50 --- Programming_Languages/Python/Syntax/Lambdas_in_Python.md | 4 ++++ 1 file changed, 4 insertions(+) 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 ```