Skip to content

Instantly share code, notes, and snippets.

@codeperfectplus
Last active September 16, 2023 13:47
Show Gist options
  • Save codeperfectplus/f96f638229e46b2ea58276f48da731c9 to your computer and use it in GitHub Desktop.
Save codeperfectplus/f96f638229e46b2ea58276f48da731c9 to your computer and use it in GitHub Desktop.
#!/bin/python3
def miniMaxSum(arr):
# Write your code here
sum = 0
for element in arr:
sum += element
print(sum - max(arr), sum - min(arr))
if __name__ == '__main__':
arr = list(map(int, input().rstrip().split()))
miniMaxSum(arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment