List functions V | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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