Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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