結果 : how to write a recursive function in python