Advertisement
STANAANDREY

LSD3 8

Oct 14th, 2022 (edited)
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. def my_reverse(s):
  2.     if len(s) == 1:
  3.         return s
  4.  
  5.     return s[len(s) - 1] + my_reverse(s[:len(s) - 1])
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement