+ 4
def spell(txt):
if txt:
print(txt[-1])
return spell(txt[:-1])
txt = input()
spell(txt)
+ 2
I hope that this code can help you
https://code.sololearn.com/cv9yxzNmZI8G/?ref=app
+ 1
Ashenafi Debella
https://www.sololearn.com/Discuss/1470297/how-to-reverse-a-string-in-JUMP_LINK__&&__python__&&__JUMP_LINK
https://www.sanfoundry.com/python-program-reverse-string-using-recursion/
https://www.geeksforgeeks.org/reverse-a-string-using-recursion/amp/
https://www.geeksforgeeks.org/reverse-string-python-5-different-ways/amp/
https://stackoverflow.com/questions/5532902/python-reversing-a-string-using-recursion
0
Let's say
d = "toffee"
print(d[::-1])