











































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































Exercise: Forming Base Case & Recursive Rules
Exercise: Forming Base Case & Recursive Rules
Translating Recursive Ideas To Programs
Translating Recursive Ideas To Programs
def countDown(n): '''Version 2''' if n > 0 : print(n) countDown(n-1) def countDown(n): '''Version 1''' if n < 1: pass # do nothing else: print(n) countDown(n-1)