Add exercises that were initially left out

This commit is contained in:
lolabird 2024-03-01 10:14:56 -07:00
commit bf78a613d3
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# Runestone.Academy thinkcspy course
# Chapter 16
# Problem 2
def reverseList(lst):
if len(lst) == 1:
return lst
else:
lst = [lst[-1]] + reverseList(lst[:-1])
return lst