7/15 Practice makes perfect. Reverse


#1

https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-py0yl/1/1?curriculum_id=5370f030fed2a866a2000001#

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
nohtyP
None


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

Thank you for your help.


#2

@snakefinger33gmail.c,
Have a close look at the required string

"Python!"


#3

Thank you.Sir for your post.


#4

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