Try to write upDown() both recursively and without recursion. Which is easier? Why?
Try writing upDown():
>>> upDown("Hello")
Hello
Hell
Hel
He
H
He
Hel
Hell
Hello
Note: Given that output, one can presume that they were either printed out, or are one string with new line characters at the end of each line.
Computer Science & Information Technology