system says that my code returns "cba !nohtyP" when it shoud...
I decided to turn one of my laptops into an Ubuntu box. So, In an effort to do this python class, I've been writing each of the exercises on that laptop as well (using SPE). Since they've all worked as expected, it's served as just extra practice using SPE. Then came this exercise. My Ubuntu laptop works just fine. I get "!nohtyP" as a return, but the system returns as above." So, I'm asking for a bit of understanding.
Thanks in advance,
new_text =  def reverse(text): for i in range(len(text), 0, -1): new_text.append(eval(repr(text[i - 1]))) return ''.join(new_text)