title: How to extract a list of integer numbers from a list with strings and integers?
body: <p>I do have a list which looks like:</p>
  <pre><code>a = ['11, 12, 9, 10, 17, 18, 19, \n', '20, 2, 6, 4, 1, 13, 14, 15, \n', '16, 3, 5, 7, 8, 21, 22, 23, \n', '24, 25, 26, 27, 28, 29, 30, 31, \n', '32, 33, 34, 35, 36, 37, 38, 39, \n', '40, 41, 42, 43, 44, 45, 46, 47, \n', '48, 49, 50, 51, 52, 53, 54, 55, \n', '56, \n']
  </code></pre>
  <p>I want to create a list with each integer in it separately with:</p>
  <pre><code>a = [int(x) for s in a for x in s.split(',')]
  </code></pre>
  <p>I can see the error because of \n and ' but cant find a solution, which should be looking like:</p>
  <pre><code>a = [11, 12, 9, 10, 17, 18, 19, 20, 2, 6, 4, 1, 13, 14, 15, 16, 3, 5, 7, 8, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]
  </code></pre>
  <p>Can someone give some solution in this regard?</p>