Re: [Tutor] for statement with addition ...

2009-07-13 Thread Markus Hubig
On Mon, Jul 13, 2009 at 2:08 PM, Dave Angel wrote: > Markus Hubig 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

Re: [Tutor] for statement with addition ...

2009-07-13 Thread Dave Angel
Markus Hubig 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 st

Re: [Tutor] for statement with addition ...

2009-07-13 Thread Kent Johnson
On Mon, Jul 13, 2009 at 6:50 AM, Markus Hubig 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 py

Re: [Tutor] for statement with addition ...

2009-07-13 Thread Rommel Asibal
Markus, That looks like a typo. remove it and it should work. On Mon, Jul 13, 2009 at 4:50 AM, Markus Hubig 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

[Tutor] for statement with addition ...

2009-07-13 Thread Markus Hubig
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 -- --