I am not able to run the following program in my system as given below.
I don’t see anything wrong with code. Try executing again by reconnecting.
Hi, I ran this:
… return list(set(a))
a = [1,2,3,4,1,2,3,5,6,7,89,1,2,3,4,5,6,11,12]
[1, 2, 3, 4, 5, 6, 7, 11, 12, 89]
code is 100% fine. please check carefully and try.
try to unpack the arguement which you are sending(i.e. 'a' ) like this:-
def unique_value(*a): return list(set(a)) a= [1,2,4,4,3,2,1,1,2,4,5,3,6,7] print(unique_value(*a))