Skip to content

Instantly share code, notes, and snippets.

@ewauq
Created June 18, 2021 13:54
Show Gist options
  • Save ewauq/9fcee1fef9bf5f4ab7a2403ee095fb43 to your computer and use it in GitHub Desktop.
Save ewauq/9fcee1fef9bf5f4ab7a2403ee095fb43 to your computer and use it in GitHub Desktop.
Remove duplicates from a list
my_list = ["AAAA", "BBBBB", "CCCC", "AAAA", "CCCC"]
print(list(set(my_list)))
> ['AAAA', 'CCCC', 'BBBBB']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment