Contact: aviboots(AT)netvision.net.il
39,971 questions
51,913 answers
573 users
from collections import Counter c = Counter(a=2, b=0, c=9, d=-3, f=7) d = Counter(a=1, b=2, c=3, e=4, g=8) cd = c | d print(cd) ''' run: Counter({'c': 9, 'g': 8, 'f': 7, 'e': 4, 'b': 2, 'a': 2}) '''