r/learnpython • u/notfromkentohio • Jan 23 '22
I still don't understand the benefit of lambda functions
Hi all,
I've read about lambda functions (for python and other languages), I can WRITE lambda functions just fine, but it seems to me that most places I use them they're just...functions with different syntax. I mean they take args, they return values sometimes. What am I missing here? If anyone has examples of problems they've solved with lambda functions that would also be very helpful.
Thanks!
324
Upvotes
1
u/siddsp Mar 28 '22
Which is why I said you can simply convert an attribute to a string after having it autocompleted by your IDE, making your point invalid.