Answer:
months = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']
date = input('Enter a date using the mm/dd/yyyy format ')
month, day, year = date.split('/')
month = int(month) - 1
name_of_month = months_info[month]
print(f'{name_of_month} {day}, {year}))
Step-by-step explanation:
- Create a list of the months
- Ask user for input in mm/dd/yyyy format and split
- Finally, display the result