[Tutor] for statement with addition ...

Rommel Asibal rumzster at gmail.com
Mon Jul 13 13:22:28 CEST 2009


Markus,

That looks like a typo.  remove it and it should work.

On Mon, Jul 13, 2009 at 4:50 AM, Markus Hubig <mhubig at gmail.com> wrote:

> Hi @all,
>
> within diveintopython I often found a for-statement like this:
>
> f for f in bla:
>     print f
>
> So what actually is the first f for ... is it just to declare f before
> starting the for loop? I can't find any information on python.org
> and it's hard to google this kinda stuff.
>
> - Markus
>
> --
> -------------------"it's like this"------
> even samurai have teddy bears
> and even teddy bears get drunk
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090713/ad0174f6/attachment.htm>


More information about the Tutor mailing list