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