Reversing a List

Victor Subervi victorsubervi at gmail.com
Wed Sep 1 15:21:17 CEST 2010


On Wed, Sep 1, 2010 at 9:17 AM, Shashank Singh <
shashank.sunny.singh at gmail.com> wrote:

> reverse reverses in-place
>
> >>> l = [1, 2, 3]
> >>> r = l.reverse()
> >>> r is None
> True
> >>> l
> [3, 2, 1]
> >>>
>

Ah. Thanks!
beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100901/f219065e/attachment.html>


More information about the Python-list mailing list