title: Python: How to sum numbers from text file
body: <p>How to sum numbers from text file in python? Let's say that we have some text document that have numbers like this:</p>
  
  <pre><code>320
  5203
  5246
  </code></pre>
  
  <p>And we want python open that file and sum those numbers to get to the result: 10769. How shall I do this?</p>