CA just keeps telling me I'm modifying the input list...but I'm returning a totally different list. And I'm not looping through the list I'm modifying either. Help? I've seen some of the other solutions but I want to know why my idea isn't working.
i = 0 deDupeThis = deDupeIn while i < len(deDupeIn): deDuperMem = deDupeIn[i] j = i + 1 while j < len(deDupeIn): if deDupeThis[j] == deDuperMem: del deDupeThis[j] j += 1 i += 1 return deDupeThis