Created
April 25, 2020 11:22
-
-
Save computer-tutor/42a1d4f87e2a7627422b4ab07739677f 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 unique(L): | |
return len(set(L)) | |
L=[] | |
print(unique(L)) | |
L=[1,3,3,4,4,8] | |
print(unique(L)) | |
L=[1,2,2] | |
print(unique(L)) | |
L=[33,33,33] | |
print(unique(L)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment