T1="entrer votre texte ici" p=[' ',"'",'.','!',','] T2=[k for k in T1 if k not in p] print(T2.count('e')/len(T2))