Question: def reverse_str(st): Returns a new string that is the reverse of st if len(st) == 0: return return reverse_str(st[1:]) st[0]
def reverse_str(st): """ Returns a new string that is the reverse of st """ if len(st) == 0: return "" return reverse_str(st[1:]) st[0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
