Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 25, 2020 11:22
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
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