On Apr 28, 1:12 pm, Mark Bryan Yu <[EMAIL PROTECTED]> wrote: > This set of codes works: > > >>> x = range(5) > >>> x.reverse() > >>> x > > [4, 3, 2, 1, 0] >
You can also use list slicing to get a reversed list: >>> x = range(5) >>> x [0, 1, 2, 3, 4] >>> x[::-1] [4, 3, 2, 1, 0] -- Paul -- http://mail.python.org/mailman/listinfo/python-list