LearnPy Hub
← Recursion & Lambda problems
Medium

Recursive Reverse

Write a recursive function that reverses a string (no slicing with [::-1]).

Input

One word.

Output

The reversed word.

Sample 1

Input
hello
Output
olleh

Sample 2

Input
a
Output
a
solution.py
Output appears here
Recursive Reverse · Python practice problem · LearnPy Hub