effectifs = {'A':0, 'B':0, 'C':0, 'D':0} for lettre in effectifs.keys(): effectifs[lettre] = len([lettre in effectifs])