結果 : how to define a factorial function in python