結果 : factorial logic in python using for loop