結果 : how to write factorial function in python