Terry Carroll wrote:
> Sorry, I missed you were on 2.3.x, and I think sorted() is new with 2.4.  
> You'd instead have to do the sort in a separate step:
> 
> 
>>>>l=[24, 24, 15, 16, 16, 15, 24]
>>>>l=list(set(l))
>>>>l.sort(reverse=True)
>>>>l
> 
> [24, 16, 15]

Actually the reverse parameter is new in 2.4 too, you have to do that in a 
separate step also:
l=list(set(l))
l.sort()
l.reverse()

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to