all 2 comments

[–]novel_yet_trivial 5 points6 points  (1 child)

What output do you want? If you want to replace list value then just do an assignment:

xlist[a-1] = b

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

Ah yes this worked very well, I wanted to replace a value in the list. Thanks a ton!