Created
June 18, 2021 13:54
-
-
Save ewauq/9fcee1fef9bf5f4ab7a2403ee095fb43 to your computer and use it in GitHub Desktop.
Remove duplicates from a list
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
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