Created
January 8, 2016 17:08
-
-
Save libert-xyz/d5756da157739dc7bc31 to your computer and use it in GitHub Desktop.
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
def duplSets(l): | |
l = set(l) | |
print (l) | |
#Libert R Schmidt | |
# http://www.practicepython.org/exercise/2014/05/15/14-list-remove-duplicates.html | |
def duplLoop(l): | |
newL=[] | |
for i in l: | |
if i not in newL: | |
newL.append(i) | |
print (newL) | |
l = [1,2,3,4,5,0,1,2,3,4,5,6,7,8,9,0] | |
duplSets(l) | |
duplLoop(l) |
Cool
cool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great!