DEV Community

Discussion on: Python Tricks Part 2 🐍

Collapse
 
paddy3118 profile image
Paddy3118

Great article. I'd just stress that functions are statements, lambdas are expressions. Expressions can better fit some nooks - as shown.
If you assign a lambda expression to a variable then you would most likely be better using a function definition instead - also as shown :-)