Write a program that replaces the name of each month with its three-letter abbreviation. Save it as  months .py. a) Create a list. months = ['january', 'february', 'march',...


Write a program that replaces the name of each month with its three-letter abbreviation. Save it asmonths.py.


a) Create a list.


months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']


b) Use a for loop to update and store each month with its three-letter abbreviation into a new list.


c) Print the value of each month in a row separated by a '|' as displayed in the output example.


d) Print the new list as displayed in the output example.


e) Print the original list as displayed in the output example.





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here