This solution is in python
def Remove(duplicate): final_list = [] for num in duplicate: if num not in final_list: final_list.append(num) return final_list print(Remove([3, 4, 4, 3, 6, 3]))
output
[3, 4, 6]
Hi, you could have use the set method, like this:
set
dev.to/rafaacioly/comment/12l2j
:)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This solution is in pythonoutput
Hi, you could have use the
setmethod, like this:dev.to/rafaacioly/comment/12l2j
:)