Computers and Technology, 11.11.2019 18:31 jaimes04
Write a python program that allows the user to navigate through the lines of text in a file. the program prompts the user for a filename and inputs the lines of text into a list. the program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number. actual line numbers range from 1 to the number of lines in the file. if the input is 0, the program quits. otherwise, the program prints the line associated with that number.
it should be like as this sample run follows.
enter the input file name: quotes. xtxt
i cannot open the file quotes. xtxt - check the name and try again.
enter the input file name: quotes. txt
the file has 16 lines.
enter a line number [0 to quit]: 1
1 : hakuna matata!
enter a line number [0 to quit]: -1
Answers: 2
Computers and Technology, 21.06.2019 16:30
Margins can be modified in the page layout tab or by using
Answers: 2
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
Write a python program that allows the user to navigate through the lines of text in a file. the pro...
History, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31
English, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31
Chemistry, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31
Biology, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31
Biology, 23.11.2019 07:31
Mathematics, 23.11.2019 07:31