+ 1

Please tell the error in my code

string splitting and sorting pgm https://code.sololearn.com/chWtEkKk81ZX/?ref=app

9th Jul 2018, 7:37 AM
Meera Vinod
Meera Vinod - avatar
3 Respostas
+ 2
You don't need the c Just type b.sort() in one line and then iterate over b. Also put \n in the input string so that following prints will print in next line
9th Jul 2018, 7:56 AM
Matthias
Matthias - avatar
+ 1
thanks it works. but why does it not work when I create one more variable? what goes wrong then?
9th Jul 2018, 8:30 AM
Meera Vinod
Meera Vinod - avatar