New python user seeks comments

Martijn Faassen faassen at pop.vet.uu.nl
Wed Apr 21 06:32:54 EDT 1999


David Steuber wrote:
> 
> Er, uh, hmm.
> 
> I wrote my first Python program today.  It took longer than I
> expected.  Who would have guessed that you couldn't give a file object
> the name 'in'?  Or at least that was one of the weirder obstacles.

It's not that weird as 'in' is a reserved keyword in Python. :)

for i in whatever:
   print "See?"

Regards,

Martijn




More information about the Python-list mailing list