+ 3
How sorting function works on nested lists in python
3 ответов
+ 1
give more explanation pls
0
Python typically executes line by line. In case of sorting the nested list, start from the inner most or core in the nest and follow precedence of sort.
- 1
Samkit.. There are two ways to achieve this. Both, buy using itemgetter function imported from operations. I'll get you the sample code with explanation shortly. Right now, in middle of something.