How can I alphabetize a single list without altering the others | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I alphabetize a single list without altering the others

Hello, can someone help me, how can I put the list of option 3 to order the names in alphabetical order, I did it like that, but it only orders me numerically https://code.sololearn.com/cz0nmS3sJ0nT/?ref=app https://code.sololearn.com/cz0nmS3sJ0nT/?ref=app https://code.sololearn.com/cz0nmS3sJ0nT/?ref=app

16th Nov 2020, 5:36 PM
Alejandro Gonzalez
Alejandro Gonzalez - avatar
4 Answers
+ 6
Alejandro Gonzalez , please fill your list with some data, so that we get an idea how it can look like. What does the 3 columns mean in your print statement? Please give some more informations. (I assume that there is a number, the age and a kind of fiscal number ???) Thanks!
16th Nov 2020, 5:53 PM
Lothar
Lothar - avatar
+ 4
Alejandro Gonzalez , i still wait to get a sample from you how the input of 3 records looks like. For me in an external IDE sorting is working, columns are not adjusted, but this is not a big issue to solve.
16th Nov 2020, 6:36 PM
Lothar
Lothar - avatar
16th Nov 2020, 6:32 PM
Mr. Rahul
Mr. Rahul - avatar
0
this is the advert that asks me Program in Python the function or functions that Let sort by insertion method one List of Names with ID and Age, must contain pass parameters and in a function return the list ordered by ID and another list by Names. Must also show both lists I managed to do but option 3 does not order me in the alphabetical way, the rest of the list is ok https://code.sololearn.com/cz0nmS3sJ0nT/?ref=app
16th Nov 2020, 5:58 PM
Alejandro Gonzalez
Alejandro Gonzalez - avatar