Created
January 31, 2017 00:14
-
-
Save Ra1d7/ca6061cbc7a82180fdb61099fa9c2bb0 to your computer and use it in GitHub Desktop.
remove duplicates (exercise 14)
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
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