title: How do I write a code that uses the accumulation pattern to take the sum of all of the numbers and assigns it to an int?
body: <p>addition_str is a string and I need to convert the values in it to int using accumulation but we haven't covered this in the text.</p>
  
  <p>I don't know how to solve this. I've tried numerous combinations of for loops but my code is still wrong. I know what I have below is useless but I do not have a record of all the combinations I've used so far.</p>
  
  <pre><code>addition_str = "2+5+10+20"
  print(addition_str.split("+"))
  
  print (int("2"))
  print (int("5"))
  print (int("10"))
  print (int("20"))
  
  accum = 0
  for i in num_chars:
      accum = accum + i
  print(accum)
  </code></pre>
  
  <p>addition_str is a string with a list of numbers separated by the + sign. Write code that uses the accumulation pattern to take the sum of all of the numbers and assigns it to sum_val (an integer). (You should use the .split("+") function to split by "+" and int() to cast to an integer).</p>