[Tutor] python
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Apr 1 16:14:58 EDT 2021
On 01/04/2021 01:36, Shaid wrote:
> Write a function that take s a list of numbers as input and returns the
> sum of the numbers in the list .
What do you need help with?
Do you know how to write a function?
Do you know how to specify a list as an input parameter?
Do you know how to sum the numbers in a list?
Do you know how to return a value from a function?
Do you know how to test a function to prove it works?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list