Using Python, write a one-liner function to return a list containing only the unique elements of the given list. Order doesn't matter. Next, write a function to return an order-preserving list containing only the unique elements of the given list.
Utilisateur anonyme
def f1(seq): ….return list(set(seq)) def f2(seq): ….newseq = [] ….for i in seq: ……..if i not in newseq: ………...newseq.append(i) ….return newseq