cheat = list(text)
return "".join(cheat[::len(text) - len(text) -1] )
i think there are easier solutions to come up with then your "cheat", don't you think?
there's many pythonic ways to do it , but this is really the same as [::-1]
Considering that the aim of the exercise is for you to learn something, and considering that in performing the exercise, you came up with a working solution, what you submitted does not constitute cheating.
Yes, this does involve some trickery, but it is creative trickery ...
len(text) - len(text) -1
You deserved and earned the point.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.