You are viewing a single comment's thread. Return to all comments →
def minMaxSum(arr): total = sum(arr) min_ele = min(arr) max_ele = max(arr) print(total-max_ele, total-min_ele) arr = list(map(int, input().split())) minMaxSum(arr)
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
For Python3 Platform
I wrote the code from scratch just to get more practice