title: python code not reading first line in file
body: <p>So I have this piece of code that is supposed to iterate over every line in a file, then add each line to a list, then strip that list (to get rid of spaces and \n's), and then finally appends those list items to one big list. This list contains every word from every sentence from every line in the file.
  The code I have here does exactly except for one detail, it skips the first line for some reason.</p>
  
  <pre><code>def counter(words):
      frequency = {}
      for word in words:
          if word not in frequency:
              frequency[word] = 1
          elif word in frequency:
              frequency[word] += 1
      return frequency
  
  
  def main():
      print("This program shows the frequency of words in a file.\n"
            "Could you please enter the file name, without extension?")
      file_name = input('') + '.txt'
      with open(file_name, "r") as word_file:
          words = []
          for lines in word_file:
              for line in lines:
                  line = word_file.readline()
                  temp_words = line.split()
                  print(temp_words)
                  for word in temp_words:
                      words.append(word)
      print(counter(words))
  </code></pre>
  
  <p>This is the whole code but you guys only need to focus on the main function, thank youu!</p>