Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 25, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save computer-tutor/42a1d4f87e2a7627422b4ab07739677f to your computer and use it in GitHub Desktop.
Save computer-tutor/42a1d4f87e2a7627422b4ab07739677f to your computer and use it in GitHub Desktop.
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