Fantastic explanation everyone. Thanks a lot. Looking forward to using
lambda going forward.
~ Ajit Deshpande
On Sat, Mar 19, 2011 at 6:07 PM, Steven D'Aprano wrote:
> Ajit Deshpande wrote:
>
>> I am trying to figure out where lambda functions can be useful. Has anyone
>
tension to your code:
>>> a=5.0
>>> b=5.0
>>> a==b
True
>>> a is b
False
Because I used "5.0" instead of "5", the "is" operator is giving a different
result ("False")
~ Ajit Deshpande
2011/3/19 Yaşar Arabacı
> >
this. I would simply do:
add_one = x + 1
Can you provide some useful use cases for lambda functions?
~ Ajit Deshpande
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor