little problem with list.reverse() function

Grant Edwards grante at visi.com
Sat Sep 11 11:32:37 EDT 2004


On 2004-09-11, manuel <manuelbastioniNOSPAM at tin.it> wrote:
> >>> a = [[1,2],[2,3],[4,5]]
> >>> print a
> [[1, 2], [2, 3], [4, 5]]
> >>> print a.reverse()
> None
> >>>

>>> a = [[1,2],[2,3],[4,5]]
>>> print a
[[1, 2], [2, 3], [4, 5]]
>>> a.reverse()
>>> print a
[[4, 5], [2, 3], [1, 2]]
>>> 


-- 
Grant Edwards                   grante             Yow!  If I felt any more
                                  at               SOPHISTICATED I would DIE
                               visi.com            of EMBARRASSMENT!



More information about the Python-list mailing list