title: list indices must be integers, not str
body: <p>i have 2 types of lists: names, and scores and I'm trying to combine the scores so that all of the scores are combined into an existing list</p>
  
  <p>I keep getting the "list indices must be integers, not str" error</p>
  
  <pre><code>name1= [jim, bob, john, smith]
  
  score1= [4,7,3,11]
  
  name2= [bob, cahterine, jim, will, lucy]
  
  score2= [6,12,7,1,4]
  </code></pre>
  
  <p>I want the result to be:</p>
  
  <pre><code>name1 = [jim, bob, john, smith, catherine, will, lucy]
  
  score2 = [11, 13 ,3 ,11 ,12 ,1 ,4]
  
  
  def merge(name1,score1, name2,score2):
  
       for i in name2:
          if i in name1:
             indexed= name1.index(i)
             score2[i] =score1[int(indexed)]+score2[i]
          if i not in name1:
             name1.append(i)
             score1.append(score2[(name1.index(i))])
  </code></pre>