My task (for class): Write a program that takes a month number (like 3) and outputs the month name (like March). Use a list or tuple to store all of the month names and then use the month number to index. Example:
>>> Enter a month number from 1 to 12: 3
>>> That is March.
This is what I've tried:
from collections import namedtuple
month = int(input('Any month number between 1-4: '))
month_name = namedtuple('Month',['January','February','March','April',])
month_number = month_name(1,2,3,4)