I've searched the group and didn't see the answer to this...

Why doesn't this work?:

>>> letters = ['d', 'a', 'e', 'c', 'b']
>>> letters[1:3].sort()
>>>

This returns None.

Why?  letters[1:3]  is  ['a', 'e', 'c']    Sorting that should return
['a', 'c', 'e']


hwg

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to