Reverse, "'str' object is not callable


Hello I'm stuck with the reverse exercise, my code works perfectly. But the console return "Oups, merci de réessayer. Votre fonction a échoué sur coolstory comme entrée car votre fonction indique une erreur "'str' object is not callable"." and I don't understand it, anybody can help me please ?

def inverser(a):
    for x in range(len(a)):
    return m
print inverser("abcd")


This exercise has a known bug. Digging around in the archive one will find this (sorry, I didn't bookmark it)...

class str(object):
    def __add__(self, other):
        return True

Insert it above your code and assuming your program works properly, this will let you pass the lesson.


Thanks you it works =)