Mini-Max Sum

  • + 0 comments

    def miniMaxSum(arr): sums = [] for n in arr: total = sum(arr)-n sums.append(total) print(f"{min(sums)} {max(sums)}")