[ python-Bugs-1194209 ] Error in section 4.2 of Python Tutorial

SourceForge.net noreply at sourceforge.net
Tue May 3 06:05:24 CEST 2005


Bugs item #1194209, was opened at 2005-05-03 00:02
Message generated for change (Settings changed) made by andrina
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1194209&group_id=5470

Category: Documentation
Group: Not a Bug
Status: Open
Resolution: None
>Priority: 3
Submitted By: Andrina Kelly (andrina)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in section 4.2 of Python Tutorial

Initial Comment:
The example in section 4.2 of the on-line tutorial should read as 
follows:

>>> # Measure some strings:
... a = ['cat', 'window', 'defenestrate']
>>> for x in a:
...     print x, len(a)
... 
cat 3
window 6
defenestrate 12

currently the print line has len(x)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1194209&group_id=5470


More information about the Python-bugs-list mailing list