結果 : how to write a factorial function in python