title: python basics - I am trying to write a function which takes a string(a month) as an input and returns the amount of days in the month
body: <p>I am trying to write a function which takes a string(a month) as an input and returns the amount of days in the month, using a list like this below:</p>
  
  <p>I put in the correction at the bottom, thanks for the help</p>
  
  <pre><code>month_days= [('January',[31]),('February',[28,29]),('March',[31]), ('April',[30]),('May',[31]),('June',[30]),('July',[31]),('August',[31]),('September',[30]),('October',[31]),    
  ('November',[30]),('December',[31]) ]
  
  
  def month_day(mnth):
      for m, d in month_days:
          if m == mnth:
              return d 
  </code></pre>