Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def countDifferent(vet):
- #@param vet: list
- #@return int
- different = []
- for i in range(len(vet)):
- if vet[i] not in different:
- different.append(vet[i])
- return len(different)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement