Skip to content

Instantly share code, notes, and snippets.

@math2001
Created November 19, 2016 06:47
Show Gist options
  • Save math2001/4e9a6c2a9517f4ff08d1dc60c1f577ec to your computer and use it in GitHub Desktop.
Save math2001/4e9a6c2a9517f4ff08d1dc60c1f577ec to your computer and use it in GitHub Desktop.
remove duplicate in list - python
def remove_duplicate(arr):
new = []
for el in arr:
if not el in new:
new.append(el)
return new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment