Python program to return unique element from a list
Topic: Python program to return unique element from a list
Solution
def unique_list(l): x1 = [] for a in l: if a not in x1: x1.append(a) return x1 print(unique_list([1, 2, 3, 3, 3, 3, 4, 5]))
List all Python Programs