logo

Crowdly

Browser

Add to Chrome

Qu'affiche ce code ? def mystere(lettre,phrase): n=len(phrase) i=0 ...

✅ 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))

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ensea.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome