def getUniqueItems(iterable):
seen = set()
result = []
for item in iterable:
if item not in seen:
seen.add(item)
result.append(item)
return result
a = ["asd","def","ase","dfg","asd","def","dfg"]
print getUniqueItems(a)
ZGVmIGdldFVuaXF1ZUl0ZW1zKGl0ZXJhYmxlKToKICAgIHNlZW4gPSBzZXQoKQogICAgcmVzdWx0ID0gW10KICAgIGZvciBpdGVtIGluIGl0ZXJhYmxlOgogICAgICAgIGlmIGl0ZW0gbm90IGluIHNlZW46CiAgICAgICAgICAgIHNlZW4uYWRkKGl0ZW0pCiAgICAgICAgICAgIHJlc3VsdC5hcHBlbmQoaXRlbSkKICAgIHJldHVybiByZXN1bHQKICAgIAphID0gWyJhc2QiLCJkZWYiLCJhc2UiLCJkZmciLCJhc2QiLCJkZWYiLCJkZmciXQpwcmludCBnZXRVbmlxdWVJdGVtcyhhKQo=