hello       I am trying to sort a list(I know there is a builtin sort
method).

     a=[21,56,35,47,94,12]
      b=[]

   for x in a:
b.append (min(a))
a.remove (min(a))
>>> a
[56, 47, 94]
>>> b
[12, 21, 35]

It is not Compleating .Doing only 3 rounds.Why?
By the way how can I view the builtin code for sort method?

Wish you all Happy Xmass.
                thanks
 Prasad
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to