I have two lists. How can I define a function "remove_repeat_element" to remove repeat elements from them ? ?
def remove_repeat_element(a, b):
... ...
a = ['bd09fdf7-918e-4a5e-8338-0f6fe78fd238']
b = ['bd09fdf7-918e-4a5e-8338-0f6fe78fd238', '3c26f383-da50-446c-8613-64e1068bd57e']
result = remove_repeat_element(a, b)
print result
>>> ['3c26f383-da50-446c-8613-64e1068bd57e']
Could someone give me some advice ?? Thanks a lot!