увеличить DIC с для цикла

a = defaultdict(int)
a['asdf'] += 1
# a['asdf'] will now be 1, since it updates from 0
Thoughtless Tapir