[Tutor] What's the difference between sort(aList) and aList.sorted()

Alan Gauld alan.gauld at yahoo.co.uk
Thu Jul 27 02:28:43 EDT 2017

On 27/07/17 03:22, C W wrote:
> Thank you very much, Steve!
> I think I got it. To get help() on a method, you have to somehow invoke an
> object first.

Or just use the class. In Steven's examples he included list.sort.
'list' is the class name for a list.

Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list