num=input('Log for 1 or 3 month?\n')
month_list = []
if num == '1':
    month=input('Please input month\n'+'1 = Jan\n'+
                                            '2 = Feb\n'+
                                            '3 = Mar\n'+
                                            '4 = Apr\n'+
                                            '5 = May\n'+
                                            '6 = Jun\n'+
                                            '7 = Jul\n'+
                                            '8 = Aug\n'+
                                            '9 = Sep\n'+
                                            '10 = Oct\n'+
                                            '11 = Nov\n'+
                                            '12 = Dec\n')
    if month == '1':
        month = 'Jan'
    elif month == '2':
        month = 'Feb'
    elif month == '3':
        month = 'Mar'
    elif month == '4':
        month = 'Apr'
    elif month == '5':
        month = 'May'
    elif month == '6':
        month = 'Jun'
    elif month == '7':
        month = 'Jul'
    elif month == '8':
        month = 'Aug'
    elif month == '9':
        month = 'Sep'
    elif month == '10':
        month = 'Oct'
    elif month == '11':
        month = 'Nov'
    elif month == '12':
        month = 'Dec'
    month_list.append(month)
elif num == '3':
    month=input('Please input first month\n'+'1 = Jan\n'+
                                            '2 = Feb\n'+
                                            '3 = Mar\n'+
                                            '4 = Apr\n'+
                                            '5 = May\n'+
                                            '6 = Jun\n'+
                                            '7 = Jul\n'+
                                            '8 = Aug\n'+
                                            '9 = Sep\n'+
                                            '10 = Oct\n'+
                                            '11 = Nov\n'+
                                            '12 = Dec\n')
    if month == '1':
        month = 'Jan'
    elif month == '2':
        month = 'Feb'
    elif month == '3':
        month = 'Mar'
    elif month == '4':
        month = 'Apr'
    elif month == '5':
        month = 'May'
    elif month == '6':
        month = 'Jun'
    elif month == '7':
        month = 'Jul'
    elif month == '8':
        month = 'Aug'
    elif month == '9':
        month = 'Sep'
    elif month == '10':
        month = 'Oct'
    elif month == '11':
        month = 'Nov'
    elif month == '12':
        month = 'Dec'
    month_list.append(month)

    month=input('\nPlease input second month\n'+'1 = Jan\n'+
                                            '2 = Feb\n'+
                                            '3 = Mar\n'+
                                            '4 = Apr\n'+
                                            '5 = May\n'+
                                            '6 = Jun\n'+
                                            '7 = Jul\n'+
                                            '8 = Aug\n'+
                                            '9 = Sep\n'+
                                            '10 = Oct\n'+
                                            '11 = Nov\n'+
                                            '12 = Dec\n')
    if month == '1':
        month = 'Jan'
    elif month == '2':
        month = 'Feb'
    elif month == '3':
        month = 'Mar'
    elif month == '4':
        month = 'Apr'
    elif month == '5':
        month = 'May'
    elif month == '6':
        month = 'Jun'
    elif month == '7':
        month = 'Jul'
    elif month == '8':
        month = 'Aug'
    elif month == '9':
        month = 'Sep'
    elif month == '10':
        month = 'Oct'
    elif month == '11':
        month = 'Nov'
    elif month == '12':
        month = 'Dec'
    month_list.append(month)

    month=input('\nPlease input third month\n'+'1 = Jan\n'+
                                            '2 = Feb\n'+
                                            '3 = Mar\n'+
                                            '4 = Apr\n'+
                                            '5 = May\n'+
                                            '6 = Jun\n'+
                                            '7 = Jul\n'+
                                            '8 = Aug\n'+
                                            '9 = Sep\n'+
                                            '10 = Oct\n'+
                                            '11 = Nov\n'+
                                            '12 = Dec\n')
    if month == '1':
        month = 'Jan'
    elif month == '2':
        month = 'Feb'
    elif month == '3':
        month = 'Mar'
    elif month == '4':
        month = 'Apr'
    elif month == '5':
        month = 'May'
    elif month == '6':
        month = 'Jun'
    elif month == '7':
        month = 'Jul'
    elif month == '8':
        month = 'Aug'
    elif month == '9':
        month = 'Sep'
    elif month == '10':
        month = 'Oct'
    elif month == '11':
        month = 'Nov'
    elif month == '12':
        month = 'Dec'
    month_list.append(month)

print(month_list)

