結果 : how to break recursion in python