You can download this code by clicking the button below.
This code is now available for download.
This function takes a list as input and returns a new list containing only unique elements.
Technology Stack : set
Code Type : Function
Code Difficulty : Intermediate
def unique_list(input_list):
unique_elements = []
for item in input_list:
if item not in unique_elements:
unique_elements.append(item)
return unique_elements