Question: Simple Python quotes.txt ---------------- Hakuna Matata! All our dreams can come true, if we have the courage to pursue them. If you can dream it,
Here is a sample run (user's input is shown in red italics to differentiate from program's output): Enter the input file name: quotes.xtxt I cannot open the file quotes.xtxt - Please check the name and try again. Enter the input file name: quotes.txt The file has 16 lines. Enter a line number [O to quit]: 1 1 : Hakuna Matata! Enter a line number [0 to quit]: -1 Try again. Line number must be between 0 and 16 Enter a line number [O to quit]: 16 16: Just keep swimming! Enter a line number [0 to quit]: 17 Try again. Line number must be between 0 and 16 Enter a line number (0 to quit): 5 5: It's kind of fun to do the impossible. Enter a line number [O to quit]: A Try again. Please enter a number between 0 and 16 Enter a line number [0 to quit]: $ Try again. Please enter a number between 0 and 16 Enter a line number (0 to quit]: 4 4: To infinity and beyond! Enter a line number [0 to quit]: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
