In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of November 2nd
(this exercise will still be available for submission after that deadline, but without counting towards your grade)
[to understand the context of this problem, you should read the class #04 exercise sheet]
In this problem you should submit a function as described. Inside the function do not print anything that was not asked!
Who knew numbers could be so needy? They want you to find their maximum, their minimum, and then—just to show off—compute their sum and average too! It's time to roll up your sleeves and show these numbers who's boss!
Write a function calculator(a, b, c) that given three integers a, b, and c, returns a string in the form "MAX MIN SUM" corresponding respectively to the maximum, minimum and sum.
The following limits are guaranteed in all the test cases that will be given to your program:
-104 ≤ a, b, c ≤ 104 | The inputs can be any integer within this range |
Example Function Calls | Example Output |
print(calculator(45, 12, 36)) print(calculator(-900, 245, 1034)) print(calculator(2, 2, 1)) print(calculator(-3, -3, -3)) |
45 12 93 1034 -900 379 2 1 5 -3 -3 -9 |