title: TypeError: write() argument must be str, not int
body: <p>Below is my code </p>
  
  <pre><code>   for a in list(range(1,100)):
          print(a)
      with open("C:/Users/me/Downloads/Documents/lala",mode="w")as f:
          print(f.write(a))
  </code></pre>
  
  <p>Error is:</p>
  
  <pre><code> TypeError: write() argument must be str, not int
  </code></pre>