Last active
September 16, 2023 13:47
-
-
Save codeperfectplus/f96f638229e46b2ea58276f48da731c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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