title: Python list max function when a list item is present
body: <p>I was trying to find a max of element in a list but noticed something strange when the list contains another list item.</p>
  
  <p>code.py</p>
  
  <pre><code>a=[[1,2],3,4]
  max(a)
  [1,2]
  </code></pre>
  
  <p>how does the max function works in the above works?</p>
  
  <p>How does the list element is assumed as the max element...</p>
  
  <p>Thanks for your help.</p>