Im confused. I have rewritten this code in many different ways and this is the simplest way i could write it and it gives me an error but the error makes no sense.
Here is my code:
x = " "
count = 0
for i in text:
x = x + text[len(text) - count - 1]
count = count + 1
and here is the error message i got.
Oops, try again. Your function fails on reverse("Python!"). It returns " !nohtyP" when it should return "!nohtyP".
it returns !nohtyP instead of !nohtyP. My brain is tweeking out.