I am not sure if this is a bug or not, but here is my code:
for item in data:
if(data.count(item) == 1):
data.remove(item);
else:
continue
It works on every assertion except for Assertion #2 ([1, 2, 3, 4, 5]) which returns, ([2, 4]). Is this a bug, or is my code off?
From: http://www.checkio.org/mission/non-unique-elements/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
Created at: 2015/01/22 14:10; Updated at: 2015/01/23 03:45