Created
November 19, 2016 06:47
-
-
Save math2001/4e9a6c2a9517f4ff08d1dc60c1f577ec to your computer and use it in GitHub Desktop.
remove duplicate in list - python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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