0

Hi, I made this code, that I inserted, can someone tell me if there is an easier way to solve It?

Given a string as input, use recursion to output each letter of the strings in reverse order, on a new line. Sample Input HELLO Sample Output O L L E H https://code.sololearn.com/cNBH6t2Uct90/?ref=app

13th Jul 2022, 7:36 AM
Edo
Edo - avatar
3 ответов
0
Thanks!
13th Jul 2022, 8:15 AM
Edo
Edo - avatar
0
Like Manav Roy said your code's enough but another way would be Reverse for-loop. Startpoint lenght of string and then Count downwards but that only spare you the Methode to Reverse it. edit: I don't know of that works with python
13th Jul 2022, 9:37 AM
Felix Alcor
Felix Alcor - avatar