Exercise 2.3: Sending a Letter



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"
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.


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