+ 2

Can someone find and explain the error?

I wrote a code for sorting a list of names in alphabetical order, can't find the error. https://code.sololearn.com/cXsVXxiyZTME/?ref=app

1st Oct 2017, 7:58 AM
Jake
Jake - avatar
3 Respuestas
+ 11
@Jake : You may have copied this code from somewhere. So there seem to be certain invisible characters which interrupt the code playground. Just delete the characters at line 9 and 35. https://code.sololearn.com/c3dUgVDGWV56/?ref=app
1st Oct 2017, 8:09 AM
Dev
Dev - avatar
+ 7
@Jake : Well done! I saw those before but didn't know that you were asking about it. Yes it wasn't producing results before. Anyways, now it works *fine* :D
1st Oct 2017, 11:16 AM
Dev
Dev - avatar
+ 1
I corrected it. There were some other errors, too. Works fine now. https://code.sololearn.com/cd0WSzq1SYdc/?ref=app
1st Oct 2017, 11:07 AM
Jake
Jake - avatar