• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 4
def spell(txt): if txt: print(txt[-1]) return spell(txt[:-1]) txt = input() spell(txt)
5th Jan 2022, 3:56 PM
Simba
Simba - avatar
+ 2
I hope that this code can help you https://code.sololearn.com/cv9yxzNmZI8G/?ref=app
5th Jan 2022, 3:20 PM
PhĂșc
+ 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
5th Jan 2022, 3:43 PM
NEZ
NEZ - avatar
0
Let's say d = "toffee" print(d[::-1])
5th Jan 2022, 4:41 PM
Amol
Amol - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Moving image
3 Votes
Possible to create own code challenge?
4 Votes
Do u think I can build games from the knowledge I gain in here?
0 Votes
Check it out
1 Votes
Do you agree with me ???
0 Votes
Why does it not show the picture,
0 Votes
Want to confirm
0 Votes
Help make cool game
0 Votes
Adding audio and videos
1 Votes
Kotlin
1 Votes