✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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))