3 ms·from collections import Counter total = Counter(range(10)).total() assert total == 10by heavyset_go 3y agofrom collections import Counter total = Counter(range(10)).total() assert total == 10