title: How to convert a list of number ranges with hyphens and commas in single values
body: <p>I have a list of numbers formatted like in the example below:</p>
  
  <pre><code>3074
  88, 3074
  1935, 3478-3480
  3074, 3478-3479
  27015-27030, 27036-27037
  4380, 27000-27031, 27036
  </code></pre>
  
  <p>Basically, this is a collection of ports and port intervals.
  I would like to convert this list in a one dimensional array, like for instance:</p>
  
  <pre><code>3074
  88
  3074
  1935
  3478
  3479
  3480
  ...
  </code></pre>
  
  <p>Basically, I want a single column but with repeated values in order to retain the information about the frequency of the number showing in the list.</p>
  
  <p>I preferably would like to do this in Excel or in Python.</p>
  
  <p>Do you have any suggestions?</p>
  
  <p>Thank you</p>