title: How to auto increment duplicate values by a specific number in Python?
body: <p>I am expecting the list to be sorted and then duplicates will be spaced by increments of 0.1. Why is my code below not working? Here is what I am expecting to get versus what my program is returning:</p>
  
  <blockquote>
    <p><strong>Expected Output</strong>: <code>[11, 15, 15.1, 20, 20.1, 20.2, 20.3, 20.4, 30,
    30.1, 40, 40.1, 50, 50.1]</code></p>
    
    <p><strong>Actual output</strong>:<code>[11, 15, 15.1, 20, 20.1, 20.1, 20.1, 20.1, 30, 30.1, 40,
    40.1, 50, 50.1]</code></p>
  </blockquote>
  
  <h1>Python Code:</h1>
  
  <pre><code>my_list = [20,20,20,30,20,30,40,50,15,11,20,40,50,15]
  my_list.sort()
  dup_list = []
  
  
  for i in range (len(my_list)):
      if my_list[i] not in dup_list:
          dup_list.append(my_list[i])
      else:
          my_list[i] = my_list[i] + 0.10
  
      dup_list.append(my_list[i])
  </code></pre>