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 st...@pearwood.infowrote:
Ajit Deshpande wrote:
I am trying to figure out where lambda functions can be useful. Has anyone
used
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
:
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ı yasar11...@gmail.com
a=5
b=5
a == b
True
a is b
True
My question is, why a is b is true. What I expected