Python Sorted() Function Not Working The Way It Should
Basically I have a nested list that I am trying to sort through the 1'st index I copied the way that the python howto says how to do it but it doesn't seem to work and I don't unde
Solution 1:
sorted
returns a new list. If you want to modify the existing list, use
sheet_list.sort(key = lambda ele : ele[1])
Post a Comment for "Python Sorted() Function Not Working The Way It Should"