結果 : sum first n elements in list python