7/15 Practice makes perfect. Reverse



My code seems to be perfect in the console but i have an error message in the editor
Oups, merci de réessayer. Votre fonction échoue sur inverser("Python!"). Elle retourne "!nohtyP " alors qu'elle devrait retourner "!nohtyP".
In the console

def inverser(texte):
    result = " "
    for i in texte:
        result = i + result
    return result
print inverser("Python")

Thank you for your help.


Have a close look at the required string



Thank you.Sir for your post.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.