title: How to convert a for loop output into a python list
body: <p>I'm new to Python, sorry for the level of this question.</p>
  
  <p>This is my output (prices from a website). I'm wondering how to convert them into a list of <code>int</code>s</p>
  
  <pre><code>for price_list_items in price_list:
          for values in price_list_items:
              x= values.rstrip(' zł')
              print(x)
  </code></pre>
  
  <p>479 000<br>
  355 000<br>
  269 000<br>
  499 000<br>
  289 000<br></p>
  
  <p>The desired result will like this [479 000,355 000,... ]. Also, I want to be able to perform basic with the values.
  I found this thread <a href="https://stackoverflow.com/questions/33390493/how-to-convert-a-for-loop-output-into-a-list-python">How to convert a for loop output into a list (python)</a>, but it didn't help me.</p>