title: Getting the trimmed mean with Python
body: <p>I need to find the trimmed mean within a list of number using Python. </p>
  
  <p>I need the mean of the number list minus the max and min number from that list. 
  Eg. list= 10, 20, 30 40. I need to get the mean from 20 and 30.</p>
  
  <p>So far I have :</p>
  
  <pre><code>print "The ordered list is:", sorted(list)
  u = list[1:-1]
  u = list[1:-1]
  print "These numbers trimmed are:",u
  print "The trimmed mean is:",sum(u)/l(u)
  </code></pre>
  
  <p>l = lenght of list, this however, leaves me with an error: </p>
  
  <p>print "The trimmed mean is:",sum(u)/l(u)
  TypeError: 'int' object is not callable</p>
  
  <p>But this </p>