Mini-Max Sum

  • + 0 comments
    s=arr.sort()
    mi=sum(arr[1:])
    ma=sum(arr[:-1])
    print(ma,end=" ")
    print(mi)