required help in manual sort

Stefan Behnel stefan_ml at behnel.de
Mon Mar 7 04:22:20 EST 2011


Manjunath N, 07.03.2011 09:48:
>       I'm quite new to python programming.  I need help in manually sorting a
> list which is shuffled.

Why do you want to do that? Is this a homework assignment, or are you just 
looking for an example task to get used to the language?

The usual way to sort a list in Python is

   l = [7,3,5,4,2,1,6]
   l.sort()

Stefan




More information about the Python-list mailing list