Ezio Melotti added the comment:
The "reverse" function is defined just above the example that uses it.
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python, ezio.melotti
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: compile error -> beha
New submission from Albert Ho:
https://docs.python.org/3/tutorial/classes.html
>>> for char in reverse('golf'):
I found that reverse didnt work
and i check the doc
https://docs.python.org/3.4/library/functions.html#reversed
>>> reversed(seq)ΒΆ
I guess it just forget to change the statement