結果 : sum of n numbers using function in python