For a homework assignment I have to create a recursive function that reverses a string. Here's what I have currently. The last three lines of code were made by the instructor and we aren't allowed to change them. When I run the program, nothing is returned. I think the code to reverse the string is correct, but I'm trying to figure out how to print the result.
def reverse(input_string):
if len(input_string) == 0:
return input_string
else:
return reverse(input_string[1:]) + input_string[0]
print "Please enter the string you want to reverse: "
initial_input = raw_input()
reverse(initial_input)
reversesomehow.