Question: PYTHON - write a recursive function def reverse(string) that computes the reverse of a string. For example, reverse(flow) should return wolf Hint: reverse the substring
PYTHON - write a recursive function def reverse(string) that computes the reverse of a string. For example, reverse("flow") should return "wolf" Hint: reverse the substring starting at the second character, then add the first character at the end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
