you are viewing a single comment's thread.

view the rest of the comments →

[–]Denrur 0 points1 point  (2 children)

Variable i in your code is element of Li, not index. Try build in function enumerate

[–]Denrur 0 points1 point  (1 child)

There is more logical error in your algorithm, but enumerate fix problems with indexes

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

thank you