Recursion with a string

f(s) = f(s[1:]) + s[0] → f('abc') = cba

You can also choose a level by clicking a star.

About the course

Description
What a recursive function returns when it processes the first character of a string and passes the rest to the next call
More information
An algorithm is a precise sequence of steps. Code examples are in Python.
Sample question
f(s) = f(s[1:]) + s[0] → f('abc') = cba
Author
Jiří Preisler
Version
1.0