defreverse(lines):return"Reverse order: "+ lines[::-1]+"\n"+"Normal Order: "+ linesprint(reverse("I am printing a sentence in reverse order"))print(reverse("printing strings in reverse order using python"))
Implement a function recursively to get the desired Fibonacci sequence value. Your code should have the same input/output as the iterative code in the instructions.
defget_fib(position): output =0if(position==0):return outputif(position==1):return positionelse: output +=get_fib(position-1)+get_fib(position-2)return output# Test casesprintget_fib(9)printget_fib(11)printget_fib(0)