Python: Append correct string to END of list
<p>I am using the below code that split a bit of text at the first space </p>

<pre><code>splitdata = details[2].split(' ', 1)
details[2] = splitdata[0]
details.extend(splitdata[1:])
</code></pre>

<p>so will take a string like:</p>

<blockquote>
  <p>['(Class 6)', '(0-60, 4yo+)', '1m4f Standard']</p>
</blockquote>

<p>and it amends it to:</p>

<blockquote>
  <p>['(Class 6)', '(0-65, 4yo+)', '1m4f', 'Standard']</p>
</blockquote>

<p>but i would like the distance to be last. I have played around with the code and looked up multiple tutorials and im sure its easy to do but i have i don't seem to know how to get it to look like the below:</p>

<blockquote>
  <p>['(Class 6)', '(0-65, 4yo+)', 'Standard', '1m4f']</p>
</blockquote>