I want to create a function that takes list of any size and returns a list without duplicates.
Let functionl
be the function, I want that functionl([1, 2, 3, 1])
returns [1, 2, 3]
.
I was wondering if a function that accepts a list of any size would be really be as simply as:
def functionl([argument]):
or would i have to just leave some type of variable and append it to a list assigned to that variable.
def function1(argument):
argument = int
argument = []
I can't seem to wrap my head around lists just yet so any advice and knowledge that you all can add would be very much appreciated.