# Write a python function that given five positive integers and find the minimum and maximum values that can be calculated by summing exactly four of the five integers.

## Topic: Write a python function that given five positive integers and find the minimum and maximum values that can be calculated by summing exactly four of the five integers.

Solution

def min_max(): nums = [int(x) for x in input().strip().split(' ')] print(sum(nums) - max(nums), sum(nums) - min(nums))

List all Python Programs