0

List functions V

I am having issues: Task: Write a program that will calculate and output the sum of maximum and minimum items of the given list. my code: numbers = [14,5,6,8,17,28] #your code goes here numbers=((min() + (max()) print(numbers)

10th Sep 2021, 4:01 PM
Devin Robinson
2 Antworten
+ 3
Devin Robinson min and max are functions which accept 1 parameter so do this: total = min(numbers) + max(numbers) print (total)
10th Sep 2021, 4:07 PM
A͢J
A͢J - avatar
+ 1
thanks that was a big help. I see where I should have zig where I zag
10th Sep 2021, 4:10 PM
Devin Robinson