fix syntax

This commit is contained in:
Benjamin Peterson 2008-12-20 03:20:23 +00:00
parent 3d891b66e6
commit c9928ccf01
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ are always available. They are listed here in alphabetical order.
:func:`enumerate` is useful for obtaining an indexed series: ``(0, seq[0])``, :func:`enumerate` is useful for obtaining an indexed series: ``(0, seq[0])``,
``(1, seq[1])``, ``(2, seq[2])``, .... For example: ``(1, seq[1])``, ``(2, seq[2])``, .... For example:
>>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter')]: >>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter']):
... print(i, season) ... print(i, season)
0 Spring 0 Spring
1 Summer 1 Summer