-
-
Save amankharwal/31c179ec25e83c688c58e9914bbefd35 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(items): | |
list1 = [] | |
for i in items: | |
if i not in list1: | |
list1.append(i) | |
return list1 | |
a = ["Aman", "Akanksha", "Aman", "Danish", "Sajid"] | |
print(remove(a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment