title: How to append an increasing number to a dictionary values?
body: <p>I'm trying to create a new dictionary based on an existing dict: In this new dict I want to append an increasing integer to the end of each value. My dict has several keys but repetead values.</p>
  
  <p>I'm using the following code has an example of what I'm trying to achieve:  </p>
  
  <pre><code>list_1 = [10,20,30,40,50,60]
  list_2 = ["a","a","b","b","c","c"]
  
  dict = dict(zip(list_1,list_2))
  
  another_dict = {}
  counter = 0
  for keys in dict.keys():
      if dict[keys] == "a" :
          counter += 1
          another_dict[keys] = "a_" + str(counter)
      if dict[keys] == "b":
          counter += 1
          another_dict[keys] = "b_" + str(counter)
      if dict[keys] == "c":
          counter += 1
          another_dict[keys] = "c_" + str(counter)
  
  print(another_dict)
  </code></pre>
  
  <p>and I'm getting this result </p>
  
  <p>*<strong>{40: 'b_1', 10: 'a_2', 50: 'c_3', 20: 'a_4', 60: 'c_5', 30: 'b_6'}*</strong></p>
  
  <p>when I would like to get </p>
  
  <p>*<strong>{40: 'b_1', 10: 'a_2', 50: 'c_1', 20: 'a_1', 60: 'c_2', 30: 'b_2'}.*</strong></p>
  
  <p>The dict order isn't important.
  Thank you for your help.
  Kind Regards.
  Ivo</p>