Hello, sorry i'm french ahah :)
Your code is working correctly but he doesn't do the job i need ;)
I ask to enter number or numbers for example it should do the job for: 0, 2
So I want the code to make sort from the 0 to the 2.
PROGRAM :
I have to make a function ( a definiton ) like this
It will sort the name of person like what you did past.
Problem solved ;)with
Your code is working correctly but he doesn't do the job i need ;)
listpeople = [['RIETTE', 'JEAN', 'H', '28'], ['LAPORTE', 'LUCIE', 'H', '38']]INPUT :
I ask to enter number or numbers for example it should do the job for: 0, 2
So I want the code to make sort from the 0 to the 2.
PROGRAM :
I have to make a function ( a definiton ) like this
def sortlist(INPUT): ???????????? ????????????OUTPUT :
It will sort the name of person like what you did past.
[['LAPORTE', 'LUCIE'], ['RIETTE', 'JEAN']]
Problem solved ;)with
"return sorted([i[:2] for i in [maliste[j] for j in selection]])"