title: The Sum of molecular weight of proteins in python
body: <p>I'm trying to calculate the sum of the molecular weight of a protein sequence. I think the beginning is right, but i don't understand how i can make the sum of this sequence. </p>
  
  <pre><code>import string
  seq = 'DHPFWKQTACKHV'
  weights = {'A': 71.04, 'C': 103.01, 'D': 115.03, 'E': 129.04, 'F': 147.07,
         'G': 57.02, 'H': 137.06, 'I': 113.08, 'K': 128.09, 'L': 113.08,
         'M': 131.04, 'N': 114.04, 'P': 97.05, 'Q': 128.06, 'R': 156.10,
         'S': 87.03, 'T': 101.05, 'V': 99.07, 'W': 186.08, 'Y': 163.06 }
  weight = sum()
  print ("The molecular weight of this protein is", weight)
  </code></pre>