✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Qu'affiche ce code ?
def mystere(lettre,phrase):
n=len(phrase)
i=0
cpt=0
while i<n:
if lettre==phrase[i]:
cpt=cpt+1
i=i+1
return cpt
ma_phrase="truc bidule machin chouette"
ma_lettre="e"
print(mystere(ma_lettre,ma_phrase))