Question: How is a program written, which displays the months containing the letter r? The file months txt. has 12 lines with each line counting one
How is a program written, which displays the months containing the letter r? The file months txt. has 12 lines with each line counting one of the months of the year.
the program should use a global variable months that is initialized as the empty list. The function main should call 3 functions , one to fill the list months with the contents of the text file, one to delete from the list months the months that do not contain the letter r, and one to display the names of the months remaining in the list
The R months:
January, February, March, April, May, June, July, August, September, October, November, December
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
