title: Python Nested Dictionary
body: <p>I need to find the month which has the most number of people on any day. The code I wrote just looks for the most amount of days instead of how many people have the birthday on that day</p>
  
  <pre><code>def total_days(birthdays):
      '''
      &gt;&gt;&gt; total_days( {"Jan": {2: ["Ben"], 3: ["Sarah"], 6: ["Rob"]}, 
      "Feb": {1: ["Jimmy", "Timmmy"], 30: ["Sam", "Tony"]}})
  
      'Feb'
  
      '''
      total = 0
      month = ''
      for i in birthdays:
          new = len(birthdays[i])
          if new &gt; total:
              total = new
              month = i
      return month
  </code></pre>
  
  <p>This code returns Jan because in January there are 3 dates while Feb has 2 but I need the month with the most amount of people  which should be Feb</p>
  
  <p>Thanks</p>