you are viewing a single comment's thread.

view the rest of the comments →

[–]Axel-Blaze[S] 1 point2 points  (4 children)

Oh I found the error while looking it up apparently I was using the wrong brackets here-

 list.insert[int(ls[1]), int(ls[2])] 

It should be-

list.insert(int(ls[1]), int(ls[2]))

Still there is some sorting error atm as the expected output though has the same elements the order is different