Skip to content

Instantly share code, notes, and snippets.

@Ra1d7
Created January 31, 2017 00:14
Show Gist options
  • Save Ra1d7/ca6061cbc7a82180fdb61099fa9c2bb0 to your computer and use it in GitHub Desktop.
Save Ra1d7/ca6061cbc7a82180fdb61099fa9c2bb0 to your computer and use it in GitHub Desktop.
remove duplicates (exercise 14)
listwithdups = [1,2,2,3,456,4,654,984,3,21,65,132,1,321,32,165,4,654,32,1,321,321,32,16,54,549,84,3,21,6,5,5,5,55,6,9,9,8,7,4,9,8,4,65,456]
def removedups():
return set(listwithdups)
print(removedups())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment