Reverse of string- working but not accepted


#1



To create function "reverse(text)":-
The function gives required output on console but error message says function returns "None"


I expect to go to the next exercise


def reverse(text):
    a=""
    for j in range(len(text)):
        a=a+text[len(text)-j-1]
    print a
    
reverse("Python@#$%")


#2

Same problem with next exercise on anti_vowels.


#3

Got it!
Just need to 'return a' instead of 'print a'.


#4