Created
September 15, 2022 18:47
-
-
Save rbcmgs/ab20cac561dc7d0ec41e094d5afae6a2 to your computer and use it in GitHub Desktop.
python combine two lists and deduplicate
This file contains hidden or 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
| a = [1, 2, 2, 3, 6, 5] | |
| b = [2, 5, 7, 9, 6, 13] | |
| list(set(a + b)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment