Exercise 2.3: Sending a Letter


#1



https://www.codecademy.com/fr/courses/python-beginner-fr-FR-wdjot/1/3?curriculum_id=5370f030fed2a866a2000001#

Hi again,
This is my code :

def ecrire_lettre_note(note):
if note >= 90:
return "A"
elif note >= 80:
return "B"
elif note >= 70:
return "C"
elif note >= 6:
return "D"
else:
return "F"
print ecrire_lettre_note(calcule_moyenne(lloyd))

And this is the error message in the editor :

Oups, merci de réessayer. ecrire_lettre_note(59) retourne 'D' au lieu de 'F' comme attendu.

I don't know what is wrong.
`


#2

Sorry but i have just forgotten a 0 after 6.
So it's resolved.