On 4 October 2016 at 19:11, Alan Gauld via Tutor wrote:
>> """Define a function sum() and a function multiply() that sums and
>> multiplies (respectively) all the numbers in a list of numbers. For
>> example, sum([1, 2, 3, 4]) should return 10, and multiply([1, 2, 3, 4])
>> should return 24."""
>
On 04/10/16 15:04, Richard Koeman wrote:
> I would like to modify this code so that instead of me calling the function
> with the list as shown [1,2,3,4], the user inputs the list with raw_input.
>
You don't need to modify your code you just need ton write a function
that reads a list from the us
I would like to modify this code so that instead of me calling the function
with the list as shown [1,2,3,4], the user inputs the list with raw_input.
Thanks in advance
"""Define a function sum() and a function multiply() that sums and
multiplies (respectively) all the numbers in a list of numbe