Hi getting error with below method. Please suggest the solution
def unique_value(l1):
return (list (set(unique_value(l1))))
l1=[2,2,3,4,4,5,5,3,6,6,9,9,0,0]
unique_value(l1)
Hi getting error with below method. Please suggest the solution
def unique_value(l1):
return (list (set(unique_value(l1))))
l1=[2,2,3,4,4,5,5,3,6,6,9,9,0,0]
unique_value(l1)
If you just want to find the list of all unique numbers from an array, use this:
l1=[2,2,3,4,4,5,5,3,6,6,9,9,0,0]
uniq_list = list(set(l1))
print(uniq_list)