title: How to strip unicode in a list
body: <p>I want to strip unicode string from the list 
  for example
   airports
  [u'KATL',u'KCID']</p>
  
  <p>expected output</p>
  
  <p>[KATL,KCID]</p>
  
  <p>Followed the below link</p>
  
  <p><a href="https://stackoverflow.com/questions/7984169/strip-all-the-elements-of-a-string-list">Strip all the elements of a string list</a></p>
  
  <p>Tried one of the solution</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>my_list = ['this\n', 'is\n', 'a\n', 'list\n', 'of\n', 'words\n']</p>
        
        <p>map(str.strip, my_list)
        ['this', 'is', 'a', 'list', 'of', 'words']</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>got the following error</p>
  
  <p>TypeError: descriptor 'strip' requires a 'str' object but received a 'unicode'</p>