Re: [Tutor] Code not working advise pls

2016-11-04 Thread Cameron Simpson
On 04Nov2016 21:57, tracey jones-Francis wrote: I want to write a function that will calculate and return the sum of the n highest value in a list a. Also, when n is less than 0, the answer should be zero, and if n is greater than the number of elements in the list, all elements should be incl

[Tutor] Code not working advise pls

2016-11-04 Thread tracey jones-Francis
Hi, I want to write a function that will calculate and return the sum of the n highest value in a list a. Also, when n is less than 0, the answer should be zero, and if n is greater than the number of elements in the list, all elements should be included in the sum. In addition i want to write