[BangPypers] diffrerence between lambda function and ordinary one

Shashwat Anand anand.shashwat at gmail.com
Fri Aug 6 17:26:14 CEST 2010


On Fri, Aug 6, 2010 at 8:37 PM, Pradeep Gowda <pradeep at btbytes.com> wrote:

> On Fri, Aug 6, 2010 at 10:45 AM, Shashwat Anand
> <anand.shashwat at gmail.com> wrote:
> > I would prefer LC anyway:
> >
> >>>> sum(i for i in range(0,10,2))
> > 20
>
> why use LC at all?
> >> sum(range(0,10,2))
>

Oops. Wrong choice of example.

-- 
~l0nwlf


More information about the BangPypers mailing list