結果 : sum of n digits in python