Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def different(lists):
- sum_ = 0
- collection_ = []
- for list_ in lists:
- for element in list_:
- collection_.append(element)
- set_collection = set(collection_)
- sum_ += len(set_collection)
- return sum_
- print(different([[1, 0, 1], [0, 1, 0]]))
- print(different([[32, 12, 52, 63], [32, 64, 67, 52],
- [64, 64, 17, 34], [34, 17, 76, 98]]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement