title: Python Import Text FIle as List to Iterate
body: <p>I have a text file I want to import as a list to use in this for-while loop:</p>
  
  <pre><code>text_file = open("/Users/abc/test.txt", "r")
  list1 = text_file.readlines
  list2=[]
      for item in list1:
          number=0
          while number &lt; 5:
              list2.append(str(item)+str(number))
              number = number + 1
      print list2
  </code></pre>
  
  <p>But when I run this, it outputs:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: 'builtin_function_or_method' object is not iterable
  </code></pre>
  
  <p>What do I do?</p>