結果 : sum of first n natural numbers in python using function