Why these don't work??
python at mrabarnett.plus.com
Thu Apr 8 20:43:44 CEST 2010
M. Hamed wrote:
> I'm trying the following statements that I found here and there on
> Google, but none of them works on my Python 2.5, are they too old? or
Lists have a .reverse() method which reverses the list elements
in-place, but strings don't because they're immutable.
There's a built-in function reversed() which returns an iterator over an
iterable object, eg a string:
for c in reversed("abc"):
It's all in the documentation.
> import numpy
numpy isn't part of the standard library; you'd need to download and
More information about the Python-list