# Lecture 5 -- Practice with Conditionals

#---------------------------------------------------
# Days of the month
#---------------------------------------------------
#
# Debug the following code that is supposed to 
# take the name of a month from keyboard input
# and return the number of days in that month.
#
# example: input = February
#          output = 28
#

month = input('Pick a month: ')
days = 0

if (month = 'January'):
    days = 31
elseif (month = 'February'):
    days = 28
elseif (month = 'March):
    days = 31
elseif (month = 'April'):
    days = 30
elseif (month = 'May'):
    days = 31
elseif (month = 'June'):
    days = 30
elseif (month = 'July'):
    days = 31
elseif (month = 'August'):
    days = 31
    elseif (month = 'September')
        days = 30
elseif (month = 'October'):

elseif (month = 'November'):
    days = 30
elseif (month = 'December'):
    days = 31
else
    print('Incorrect input. Enter a capitalized month name, e.g. March')
    
print('Days in ' + month + ': ', days)
    
