My professor gave me an exercise where I write a function that returns a list without the duplicate to the old list. This is the code but I don\'t know how to write the meth
If order isn't important, you can cast it to a set, then back to a list
set
list
def distinct(lst): return list(set(lst))