[Tutor] for statement with addition ...
Kent Johnson
kent37 at tds.net
Mon Jul 13 13:37:45 CEST 2009
On Mon, Jul 13, 2009 at 6: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.
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
More information about the Tutor
mailing list