CCing the list, please use replyAll when responding to the list.
 
By the way for some reason, the google class says that the functions sorted() 
is better than the method list.sort().
>
>
>
>" list.sort() -- sorts the list in place (does not return it). (The sorted() 
>function shown below is preferred.) "
>
>http://code.google.com/edu/languages/google-python-class/lists.html 
>
>
>Somebody knows why?
>
>No idea to be honest but it could be because in pure computer science theory
functions that return a value (ie sorted) are considered better than functions 
that change things as a side effect (ie sort).  

Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to