month = { "jan" : 31 , "feb" : 28 , "march" : 31 , "april" : 30 , "may" : 31 , "june" : 30 , "july" : 31 , "aug" : 31 , "sept" : 30 , "oct" : 31 , "nov" : 30 , "dec" : 31} mon = input("Enter the month name in short form :- ") print("Number of days in ",mon,"=",month [ mon ]) OUTPUT- Enter the month name in short form :- feb Number of days in feb = 28 b) Print out all of the keys in alphabetical order. CODE- month = { "jan" : 31 , "feb" : 28 , "march" : 31 , "april" : 30 , "may" : 31 , "june" : 30 , "july" : 31 , "aug" : 31 , "sept" : 30 , "oct" : 31 , "nov" : 30 , "dec" : 31} lst = list ( month . keys() ) lst.sort() print( lst ) OUTPUT- ['april', 'aug', 'dec', 'feb', 'jan', 'july', 'june', 'march', 'may', 'nov', 'oct', 'sept'] c) Print out all of the month with 31 days. CODE- month = { "jan" : 31 , "feb" : 28 , "march" : 31 , "april" : 30 , "may" : 31 , "june" : 30 , "july" : 31 , "aug" : 31 , "sept" : 30 , "oct" : 31 , "nov" : 30 , "dec" : 31} print( "Month which have 31 days !!-- ") for i in month : if month [ i ] == 31 : print( i ) OUTPUT- Month which have 31 days !!-- jan march may july aug oct dec d) Print out the (key value) pairs started by the number of days in each month. CODE- month = { "jan" : 31 , "feb" : 28 , "march" : 31 , "april" : 30 , "may" : 31 , "june" : 30 , "july" : 31 , "aug" : 31 , "sept" : 30 , "oct" : 31 , "nov" : 30 , "dec" : 31} print("Month according to number of days ---") print("feb") for i in month : if month [ i ] == 30 : print(i) for i in month : if month [ i ] == 31 : print( i) OUTPUT- Month according to number of days --- feb april june sept nov jan march may july aug oct dec