結果 : factorial of a number algorithm in python