Question: Write a function in Python, called PrintThem(ls) that takes a list variable ls as argument. It then prints out the sum, the maximum, and the

Write a function in Python, called PrintThem(ls) that takes a list variable ls as argument. It then prints out the sum, the maximum, and the minimum of all elements in the list, each on separate lines and each with an announcement, like this sample run below. The function prints these things without returning any value. You can safely assume that the variable ls will always just include integer numbers (you dont have to check for that).

>>> x = [5, 2, 10, 7]

>>> PrintThem(x)

The sum is: 24

The max is: 10

The min is: 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!