i was writing some basic code . for understanding lambda functions , but
couldnt understand the difference between a lambda function and an ordinary
function.

for example

>>>def f (x): return x**2
...
>>> print f(8)
>>> 64
>>> g = lambda x: x**2
>>>
>>> print g(8)
>>> 64

wats a need for using lambda functions ..?
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to