SyntaxFix
Write A Post
Hire A Developer
Questions
How can it ever be longer than
tmp = my_list[indexOfPwd2] my_list[indexOfPwd2] = my_list[indexOfPwd2 + 1] my_list[indexOfPwd2 + 1] = tmp
That's just a plain swap using temporary storage.