Re: [Tutor] [tutor] sort a list

2006-12-23 Thread Luke Paireepinart
[EMAIL PROTECTED] wrote: > Hi List, > > I have a list like this x=[7,4,2,6] > and print x.sort() > gives to me None ! : > > >>> x=[7,4,2,6] >>> print x.sort() >>> > None > > ... but > > >>> x=[7,4,2,6] >>> x.sort() >>> print x >>> > [2, 4, 6, 7] > > so, why list.sort() returns N

[Tutor] [tutor] sort a list

2006-12-23 Thread emilia12
Hi List, I have a list like this x=[7,4,2,6] and print x.sort() gives to me None ! : >> x=[7,4,2,6] >> print x.sort() None ... but >> x=[7,4,2,6] >> x.sort() >> print x [2, 4, 6, 7] so, why list.sort() returns None? is this normal ? (the python is "Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [M