Snippet
def loop(x: int) -> int:
if x < 3:
return x
else:
return loop(x-2)
print(loop(6))
Solution
(This was done in class so you can also look at the lecture video!)
Image Description
(Coming Soon)