@extends('template') @section('title') Example: two recursive-call function @stop @section('content') # Example: two recursive-call function ```py def chop(word): if len(word) > 0: print(word) chop(w[1:]) # 1st recursive call print('---') chop(w[1:] ) # 2nd recursive call print('*') ``` # Solution Notes: + the brown circled letters indicate which print statements produce which printed lines + the numbers above each function call frame indicate the order in which they are opened (1-15) + the function call frames 4, 5, 7, 8, 11, 12, 14 and 15 are invoked with an empty string `('')`. This makes `len(word) > 0` False, which means nothing is printed. @include('/labs/lab11_extra/_toc') @stop