title: Python 3 function printing the same list many times
body: <p>I need this function to print a list of sentences from the <code>tastiera.txt</code> file</p>
  
  <pre><code>def frasi_da_file():
      arg1 = input ("percorso file: ")
      arg2 = input("codifica: ")
      if arg1 == "tastiera.txt" and arg2 == "latin1":
          f = open("tastiera.txt")
          raw = f.read()
          for line in raw: 
              q = re.split("\s+", raw)
          print (q)
  </code></pre>
  
  <p>Now its printing the same lists over and over again... I think the problem is in the "for" but i don't know how to solve it.</p>