<filename>Chapter05/do_n.py

def output():
    print('Hello')



def do_n(f, n):
    if n <= 0:
        return
    else:
        f()
        do_n(f, n - 1)


do_n(output, 10)     

<filename>Chapter05/do_n.py

def output():
    print('Hello')



def do_n(f, n):
    if n <= 0:
        return
    else:
        f()
        do_n(f, n - 1)


do_n(output, 10)     
