Jun-22-2019, 07:47 PM
Hi,
simple mistake: you iterate over a list AND remove items from the list at the same time. Thus, you do not "catch" all items in the list.
Solution: create a 2nd list for the result and make use of the
Regards, noisefloor
simple mistake: you iterate over a list AND remove items from the list at the same time. Thus, you do not "catch" all items in the list.
Solution: create a 2nd list for the result and make use of the
in
operator to verify if an item is already in the new list. Or, more simple, use a set
.Regards, noisefloor