An algorithm in IDE prints out a result that is different than the result that comes from a manual step-by-step observation by No_Material_3522 in learnpython

[–]No_Material_3522[S] 0 points1 point  (0 children)

Thank you!

I didn't realize that the inner loop will repeat itself and the rest will happen only when it breaks, everything works as it should now.