title: How does the .lower function works in lambda?
body: <pre><code>d = ['AAab', 'abc', 'Ejc','badad1']
  d.sort(key=lambda s: s.lower())
  print(d)
  </code></pre>
  
  <p>output is <code>['AAab', 'abc', 'badad1', 'Ejc']</code></p>
  
  <p>I'am confused that I've called a lower function 
  why it's returning me AAab first, then abc, then badad1 and then EJC</p>
  
  <p>Shouldn't it return abc first, then badad1, then AAB, then EJC ?</p>