Am 26.11.2012 13:38, schrieb Artem B.:
>> Why?
> It was be an exercise of learning guide :)
>
> Thanks, and what do you think about my code?

You can swap array elements more easily with a parallel assignment:

   words[i], words[i+1] = words[i+1], words[i]


-- 
<https://github.com/stomar/>