fork download
  1. f = lambda n:sum(sorted(n*4)[len(n):-len(n)])/len(n)/2
  2.  
  3. print(f([1,3,4,5,6,6,7,7,8,8,9,38]))
  4. print(f([1,3,5,7,9,11,13,15,17]))
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
6.5
9.0