title: How to find the sum of values at given keys in a dictionary?
body: <p>I am trying to create a Blackjack game in Python and I need to change the hand that you're given(strings) into integer values. I made a dictionary to key each string to its respective value, but im not sure about how to turn all the strings into integers and calculate the sum</p>
  
  <pre><code>numbers = ["A", "B", "C", "D"]
  values = {
      "A": 1,
      "B": 2,
      "C": 3,
      "D": 4
  }
  
  for i in numbers:
      numbers[i] = values[i]
      print(numbers[i])
  </code></pre>
  
  <p>This is simplification of my code so far</p>