# coding: latin-1 def compteur (s) : nombre = {} for c in s : if c not in nombre : nombre [c] = 0 # ligne ajoutée nombre [c] += 1 return nombre