Commit 4cd56a23 by BellCodeEditor

auto save

parent 0a7b0048
Showing with 11 additions and 2 deletions
s=[21,54,45,98,34,56,25,17,74,14]
alist = [88, 75, 72, 82, 90, 85, 78, 91] arr=input().split(',')
\ No newline at end of file for i in range(len(arr)):
arr[i]=int(arr[i])
arr.sort()
print(arr)
sum=0
for i in range(1,len(arr)-1):
sum=sum+arr[i]
print(round(sum/(len(arr)-2),2)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment