+ 3

How sorting function works on nested lists in python

28th Oct 2016, 2:45 PM
Samkitkumar Jain
Samkitkumar Jain - avatar
3 Respuestas
+ 1
give more explanation pls
2nd Nov 2016, 1:24 PM
Samkitkumar Jain
Samkitkumar Jain - avatar
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.
2nd Nov 2016, 1:21 PM
RAMAKRISHNA RAMARAJU
RAMAKRISHNA RAMARAJU - avatar
- 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.
3rd Nov 2016, 8:37 AM
RAMAKRISHNA RAMARAJU
RAMAKRISHNA RAMARAJU - avatar