title: How to multiply values in a dictionary by an integer given in the parameter?
body: <p>I want to multiply scores inside the dictionary by an integer given in the parameter for a specific key. If the integer is not for the key then I want to return the scores as is.</p>
  <pre><code>def main():
      scores ={'Bella': [2, 8, 3], 'Jack'= [8, 9, 7, 4]}
      multiply_scores(scores, 'Bella', 3)
      print(scores['Bella'])
      print(scores['Jack'])
  </code></pre>
  <p>Expected output:</p>
  <pre><code>[6, 24, 9]
  [8, 9, 7, 4]
  </code></pre>
  <p>My current output is:</p>
  <pre><code>[6, 24, 9]
  [24, 27, 21, 12]
  </code></pre>
  <p>How can I fix my code to get the expected output:</p>
  <pre><code>def multiply_scores(scores, name, number):
      for values in scores.values():
          for index in range(0,len(values)):
              values[index] = round((values[index] * number))
      return values
  </code></pre>