Message78082
Summary: Sample code for enumerate contains a syntax error. The same
code reads:
>>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter')]:
... print(i, season)
Where the parenthesis and square bracket to the left of the colon in the
for line are backwards. It should read:
>>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter']):
Where: http://docs.python.org/dev/3.0/library/functions.html |
|
Date |
User |
Action |
Args |
2008-12-20 03:08:10 | trenholmes | set | recipients:
+ trenholmes, georg.brandl |
2008-12-20 03:08:10 | trenholmes | set | messageid: <1229742490.8.0.685614291877.issue4703@psf.upfronthosting.co.za> |
2008-12-20 03:08:09 | trenholmes | link | issue4703 messages |
2008-12-20 03:08:08 | trenholmes | create | |
|