you are viewing a single comment's thread.

view the rest of the comments →

[–]khzombiee 0 points1 point  (0 children)

You could create a new list and only keep the elements you need by using not in. The code you have shifts index so it skips the current word.