title: Write a program that gives me the Day of the Year using a dictionary
body: <p>I want to write a program that gives me the Day of the Year using a dictionary.</p>
  
  <pre><code>import sys
  Month = str(sys.argv[1])
  Day = int(sys.argv[2])
  
  m = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  Months = {"Jan": 31, "Feb": 28, "Mar": 31, "Apr": 30, "May": 31, "Jun": 30, "Jul": 31, "Aug": 31, "Sep": 30, "Oct": 31, "Nov": 30, "Dec": 31}
  a = m.index(Month)
  b = m[0:a]
  for i in range(len(b)):
  c = b[i]
  d = Months[c]
  e = sum(d) + Day
  print(e)
  </code></pre>
  
  <p>When I run it, it gives me:</p>
  
  <pre><code>File "dayoftheyear.py", line 12, in &lt;module&gt;
  e = sum(d) + Day
  TypeError: 'int' object is not iterable
  </code></pre>
  
  <p>Please, help me fix it.</p>