So I'm reading through the Python Tutorial (on chapter 5 now) and am so far thoroughly enjoying myself.
I've run into a bit of a hitch, though. A peice of example code showed this:
>>> for i in reversed(xrange(1,10,2)):
... print i
...
and it should work just peachy.
But I get this error when I try to run it through:
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'reversed' is not defined
Is reversed() perhaps in a module of some sort that I have to import?
Any help would be much appreciated.
[edited by - Drevay on January 19, 2004 12:06:31 AM]