I have two separate lists one list contain list of lists(list1) and another list is simple numeric values. The list2 is sorted but i want to sort list1 based on the values of list2 .Using Zip method it is gives errors:unhashable type.
list1=[[1 ,2],[2,1],[1,3],[1,9],[6,9],[3,5],[6,8],[4,5],[7,9]]
list2=[0.0,1.4142135623730951,1.0,7.0,8.602325267042627, 3.605551275463989,7.810249675906654,4.242640687119285,9.219544457292887]
keydict=dict(zip(list1,list2))//Gives errror: unhashable type
.Can Anybody suggest solution.