Created
December 30, 2017 11:38
-
-
Save morisasy/1889ab04764b3378178d39ce0f1dfff5 to your computer and use it in GitHub Desktop.
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_dublicates(source): | |
""" | |
-This program remove dublicate elements in string or list. | |
""" | |
target = [] | |
for element in source: | |
if element not in target: | |
target.append(element) | |
return target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment