Why this code does not run? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this code does not run?

I tried to make a code to sort lists, from lowest to biggest. When i run it, return a ValueError saying "2 is not in the list" with my example. The debuger shows me that the first time the values permutates the 2 disappears, and give other value in that place, the permutation does not complete, only a part changes. What's going wroge with this code? I cant find a mistake https://code.sololearn.com/clsP7rWIQ1MI/?ref=app

19th Jun 2020, 12:36 PM
XenonP
XenonP - avatar
0 Answers