Aug-26-2020, 07:04 AM
It seems to me that main question here is whether order should be preserved or not. If order is not important then very simple set-list conversion would do:
>>> def unique_names(first, second): ... return list(set(first + second)) ...If order is important then you should have keep track whether element is already seen or not. Something like (pseudocode, not real one):
create list where unique items will be kept for every item in lists which items will be uniquefied: if item in unique items list: continue else: append item to unique items list
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.