Question textWrite a function dseries(n_terms) to calculate the first n terms of the following seriesFor example:[table] Test | Result print(dseries(3)) | 14 [/table] Answer:(penalty regime: 0, 10, 20, ... %)def dseries(n_terms): total=0 for i in range(1,n_terms+1): total+= i **2 return total未知题型

题目图片

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!