# Lecture 8 -- Practice 1. 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
elif (month == 'February'):
    days = 28
elif (month == 'March'):
    days = 31
elif (month == 'April'):
    days = 30
elif (month == 'May'):
    days = 31
elif (month == 'June'):
    days = 30
elif (month == 'July'):
    days = 31
elif (month == 'August'):
    days = 31
elif (month == 'September'):
    days = 30
elif (month == 'October'):
    days = 31
elif (month == 'November'):
    days = 30
elif (month == 'December'):
    days = 31
else:
    print('Incorrect input. Enter a capitalized month name, e.g. March')
    
print('Days in ' + month + ': ', days)
    