I have a list, which may/may not contain duplicate elements. Given another list/set of Elements, I need a list of all unique elements present in that list.
Input:
input_list = ['android', 'ios', 'android', '', 'none', 'android', 'junk_os']
os_list = ['android', 'ios', 'windows']
Output:
output = ['android', 'ios']
What will be most pythonic and efficient way of doing this ? Length of given list may be around 10, while Os_list is fixed to 3. But this line will be iterated over 10000 times.