mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
fix syntax
This commit is contained in:
parent
3d891b66e6
commit
c9928ccf01
1 changed files with 1 additions and 1 deletions
|
@ -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])``,
|
||||
``(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)
|
||||
0 Spring
|
||||
1 Summer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue