All problems
EasyLists
Sum and max of a list
Print the sum and max of a list of numbers.
- #sum
- #max
Sample input
[12, 7, 25, 3, 18]
Sample output
sum=65 max=25
list-sum-max.py
Output
Press "Run code" to execute.
Loading…
Print the sum and max of a list of numbers.
[12, 7, 25, 3, 18]
sum=65 max=25
Press "Run code" to execute.