Skip to content

Commit

Permalink
Merge pull request #103 from anukeshi/master
Browse files Browse the repository at this point in the history
Created MinMax.py file
  • Loading branch information
ows-ali authored Oct 22, 2018
2 parents f04d46a + 9971918 commit bd9ab55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Hackerrank/MinMax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
m=input()
arr=m.split(" ")
arrInt=list(map(int,arr))
sum=0
for i in arrInt:
sum+=i
print(sum-max(arrInt),sum-min(arrInt))

0 comments on commit bd9ab55

Please sign in to comment.