title: How does the max() function work on list of strings in python?
body: <p>I have a list:</p>
  
  <pre><code>list1 = [123, 'xyz', 'zara', 'abc']
  print "Max value element : ", max(list1);
  </code></pre>
  
  <p>It gives: </p>
  
  <pre><code>Max value element : zara
  </code></pre>
  
  <p>Please also explain how it perform comparison on list of strings and list of numbers.</p>