title: middle number without using median function, Python
body: <p>I have been looking for how to find the middle number in the list so that I do not use the median function, but cannot find the information how to do that. </p>
  
  <p>I need to write a code which takes middle(L) function (have to define it), makes a list L as its argument, and returns the item in the middle position of L. (In order that the middle is well-defined, i should assume that L has odd length.) </p>
  
  <p>It is all i have right now and actually have no idea how to do that. </p>
  
  <pre><code>def middle (L):
      i= len((L)[0:-1])/2
      return i
  print (middle)
  </code></pre>