How can i sort a list in python? I have this list:
list=[[[1,2,3],0],[[13,2,3],2],[[2,0,0],13]]
And i want to sort by second element from first list. I've think that should be something like this .
list.sort(key=lambda x:x[0[1]])
And I don't know the correct syntax.