On Mon, Jul 13, 2009 at 6:50 AM, Markus Hubig<mhu...@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.

That is not Python, maybe a copy/paste artifact? Omit the initial 'f
'. Can you point to an example on the web site or in the printed book?

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to