subject

The file Months. txt has 12 lines with each line containing one of the months of the year. Write a program that displays the months containing the letter r. The program should use a global variable months that is initialized as the empty list. The function main should call three 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. Can you please solve this in python.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
What are the steps involved in accepting all the changes in a document? arrange these in order click edit. click accept or reject. click changes. click accept all.
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u.s. 483 (1954). b. international shoe co. v. washington, 326 u.s. 310 (1945) c. haynes v. gore, 531 u.s. 98 (2000). d. international shoe co. v. washington, 14 u.s. code 336.
Answers: 1
You know the right answer?
The file Months. txt has 12 lines with each line containing one of the months of the year. Write a p...
Questions
question
Business, 05.09.2020 22:01
question
Computers and Technology, 05.09.2020 22:01
question
Mathematics, 05.09.2020 22:01
Questions on the website: 13722361