On Sun, 31 May 2015 12:40:19 -0700 (PDT), fl wrote:

> 2. If reversed() is wrong the my purpose, what method can do it? i.e. '4321'
> out.

Try using slices:

>>> b='1234'
>>> b[::-1]
'4321'

https://docs.python.org/2/whatsnew/2.3.html#extended-slices
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to