+ 1
Please tell the error in my code
string splitting and sorting pgm https://code.sololearn.com/chWtEkKk81ZX/?ref=app
3 Réponses
+ 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
+ 1
thanks it works. but why does it not work when I create one more variable? what goes wrong then?