Reverse string


#1

The code gives correct output..but it shows the given error..i dont know why?pls help


#2

You should set rev to "" initally. Your function returns a space plus the reversed string.


#3

Thanks,,It worked..A space could make this error!. :slightly_smiling: