Learn Python Lambda from Scratch

Dos and don’ts of lambda function in Python

Xiaoxu Gao
Towards Data Science
7 min readJul 6, 2020

--

Photo by Ben Write on Unsplash

When it comes to process a list of elements, there are usually three options for Python programmers: a regular for-loop, list comprehension and lambda function. For Python beginners, lambda function is usually considered as “a cool feature” because of its short syntax and similarities with functional programming. But often it’s not…

--

--

I’m a Developer with a focus on Python and Data Engineering. I write stuff to talk to myself and the world. You can find me on linkedin.com/in/xiaoxugao/.