I'm trying to check the contents of a list for duplicates by storing the list in a second variable and removing one item from the list and then checking if there is still a copy of that item in the list. Here's what I've got:
disposableList = list
for i in disposableList:
disposableList.remove(i)
if i in disposableList:
end = True
The problem is when it removes i from disposableList it also removes it from List. Is there a way to do this without effecting the original list?