title: Get numerical values from string input in Python
body: <p>I need to make a function that takes a string as input and outputs a list of all numerical values.</p>
  
  <p>Some examples:</p>
  
  <ul>
  <li><code>"22-28, 31-35, 37"</code> should output: <code>[22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 37]</code></li>
  <li><code>"22, 24"</code> should output: <code>[22, 24]</code></li>
  <li><code>"23"</code> should output: <code>[23]</code></li>
  </ul>
  
  <p>How can I do this? </p>