c**********e 发帖数: 2007 | 1 Recursive List Sum. Design a function that accepts a list of numbers as an
argument. The function should recursively calculate the sum of all the
numbers in the list and return that value.
This is from a homework assignment.
Does it mean sum(x1,x2,...,xn) with n unknown, or sum(list1)? | X****r 发帖数: 3557 | 2 The latter.
【在 c**********e 的大作中提到】 : Recursive List Sum. Design a function that accepts a list of numbers as an : argument. The function should recursively calculate the sum of all the : numbers in the list and return that value. : This is from a homework assignment. : Does it mean sum(x1,x2,...,xn) with n unknown, or sum(list1)?
| A**u 发帖数: 2458 | | l*******s 发帖数: 1258 | 4 the latter, but not iterator | l********a 发帖数: 1154 | |
|