title: convert list of element to int and not the string in python
body: <p>I wish to convert this list to int and not the element of string inside it. </p>
  
  <p>just to convert those are integer.</p>
  
  <p>a = ["a\n", "222\n", "bbb\n", "7777"]</p>
  
  <p>is there a way to do so?</p>
  
  <p>I tried </p>
  
  <pre><code>for x in a:
     x = int(a)
  </code></pre>
  
  <p>but this convert all.</p>