error message: Oops, try again. Your function fails on reverse("Python!"). It returns "None" when it should return "!nohtyP".
I think my code works fine, I printed out it with examples:
doesn't that mean the result is correct?
def reverse(text): reverse_text = '' for char in text: reverse_text = char + reverse_text print reverse_text print reverse('abcd') print reverse('Python!')