Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created July 11, 2021 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/31c179ec25e83c688c58e9914bbefd35 to your computer and use it in GitHub Desktop.
Save amankharwal/31c179ec25e83c688c58e9914bbefd35 to your computer and use it in GitHub Desktop.
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