python ( : feb : : [gcc (apple inc build )type "help""copyright""creditsor "licensefor more information [evaluate untitled- pylst [ , , lst list("abc"lst [' '' '' 'lst lst traceback (most recent call last)file ""line in builtins typeerrorunorderable typesint(str(lst [ , , lst lst true lst [ , , lst lst true lst [ , , lst lst true lst [ , ,' 'lst lst true comparing lst and lst did not work because the items in the two lists are not orderable you can' compare an integer and string howevertwo lists with similar elements can be compared list comparison is performed lexicographically like strings note the last example the two lists [ , , and [ , ,' 'can be compared because the lexicographical ordering does not require that and 'abe compared there are some types in python which have no natural ordering for instancethere is no natural ordering for dictionaries in python you cannot sort list of dictionaries of courseits unclear why you would want to as well since there is no natural ordering there doesn' seem to be reason to sort them howeverif there were way to create an ordering on set of dictionaries you could define it yourself by writing your own class that inherited from the dict class and defining its own __lt__ method just as we did for the point class once we have an ordering of elements in listwe can sort the elements according to that ordering lists have sort method that will sort the items of list according to their ordering the code in sect illustrates how the items of list can be sorted calling the sort method def main() turtle turtle( ht(screen getscreen(lst [ for in range( )this copy belongs to 'acha