title: Does str.split() in Python guarantee the order of the returned list
body: <p>I want to split a string based on a <code>sep</code> where the original position of the tokens is important.</p>
  
  <p>In <a href="https://docs.python.org/3/library/stdtypes.html#str.split" rel="nofollow noreferrer">the official documentation of <code>str.split()</code></a>, nothing is mentioned about maintaining the order of the tokens as they appeared in original text before splitting. Is it guaranteed that <code>str.split</code> keeps this order?</p>
  
  <p>Having a text like: <code>A &gt; B &gt; C</code>, how can I get a guaranteed output like: <code>[(1, A), (2, B), (3, C)]</code>?</p>