title: I don't understand this max function in python
body: <p>I am new to programming and python. I was playing around with this max function and I don't understand why it is not returning the maximum value when actually it should</p>
  
  <pre><code>n = [11,3,9]
  first_last = [n[1],n[-1]]
  largest = max(first_last)
  print(largest)
  </code></pre>
  
  <p>The result is 9 instead of 11 but why?</p>