title: Casting an int to a string in Python
body: <p>I want to be able to generate a number of text files with the names fileX.txt where X is some integer:</p>
  
  <pre><code>for i in range(key):
      filename = "ME" + i + ".txt" //Error here! Can't concat a string and int
      filenum = filename
      filenum = open(filename , 'w')  
  </code></pre>
  
  <p>Does anyone else know how to do the filename = "ME" + i  part so I get a list of files with the names: "ME0.txt" , "ME1.txt" , "ME2.txt" , and etc</p>