Quote:
Originally Posted by Noughty
And I just wrote
Code:
return ', '.join(sorted(res))
Is it wrong? The result seems to be correct...
|
That works fine as long as the words do not contain non-English letters. If they do, then the words will probably sort incorrectly.