I have a list as follow:
list1 = [['10', 'John', 'python'], ['1', 'Sara', 'java'], ['3','Tom', 'C']]
and as sorted result I expect following outpt:
3 Tom C
1 Sara Java
10 John python
in fact I want to sort it base on second parameter in internal list. This code does not work:
sort1 = sorted(list1, key=lambda x: x[0][1])