Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def my_reverse(s):
- if len(s) == 1:
- return s
- return s[len(s) - 1] + my_reverse(s[:len(s) - 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement