title: i want to save the result of the'for-loop' as text file in python
body: <p>I used for-loop.
  i want to save the result of the'for-loop' as text file. how can i do?</p>
  
  <p><a href="https://i.stack.imgur.com/H282d.png" rel="nofollow noreferrer">enter image description here</a></p>