title: Python Split first "middle" and last word
body: <p>I would like to split a list in 3 parts. It works except when the middle part is in &quot;two parts&quot;.</p>
  <pre><code>file = open(&quot;/topladder/pr_top_fr&quot;,&quot;r&quot;)
  for line in file:
      fields = line.split( )
      
      pos1 = fields[0]
      pos2 = fields[1]
      pos3 = fields[2]
  
      print(&quot;Position: &quot; + pos1 + &quot; - &quot; + pos2 + &quot; - Tr:&quot; + pos3)
  </code></pre>
  <p>the file look like:</p>
  <pre><code>308 Mars 6249
  948 Ben Stark 6063
  955 Toto 6061
  </code></pre>
  <p>And here is the result:</p>
  <pre><code>Position: 308 - Mars - Tr:6249
  Position: 948 - Ben - Tr:Stark
  Position: 955 - Toto - Tr:6061
  </code></pre>
  <p>Is it possible to &quot;combine&quot; everything that is in the middle in &quot;pos2&quot;?
  Thanks !!</p>