title: Check whether list element is greater than previous elements
body: <p>I have a list like this in Python: </p>
  
  <pre><code>mylist = [13, 8, 7, 5, 6, 3, 9]
  </code></pre>
  
  <p>I would like to check for each element of the list, whether it is greater or equal to the previous elements. If This is true I want to add 1 and check whether it is equal to a prior element. If this happens add numbers til it is not true anymore.</p>
  
  <p>I hope you can understand, what I want to archive. The output for mylist would be</p>
  
  <pre><code>outputlist = [13, 8, 7, 5, 9, 3, 10]
  </code></pre>
  
  <p>so the <code>6</code> from <code>mylist</code> is greater than <code>5</code> so it adds <code>1</code>, now it is <code>7</code>, which already exists. So it adds another <code>1</code> (value = <code>8</code>) and another <code>1</code> (value = <code>9</code>).</p>
  
  <p>the "9" from the initial list is equal to the fresh calculated 9, so it adds 1.</p>
  
  <p>Note: order is important, so sorting <code>mylist</code> is not an option.</p>