Skip to content

Instantly share code, notes, and snippets.

@rbcmgs
Created September 15, 2022 18:47
Show Gist options
  • Select an option

  • Save rbcmgs/ab20cac561dc7d0ec41e094d5afae6a2 to your computer and use it in GitHub Desktop.

Select an option

Save rbcmgs/ab20cac561dc7d0ec41e094d5afae6a2 to your computer and use it in GitHub Desktop.
python combine two lists and deduplicate
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