/* */

Tuesday, 22 March 2011

Sort

Sort a list into numerical order - this changes the original rather than returning a copy of the list;

x = [4,6,2,1,7,9]
x.sort()
x
[1,2,4,6,7,9]

No comments:

Post a Comment