Question: Write a python program to open and read .txt files. It should accept file's name by inputting from user. If the user input 'quit' ,
Write a python program to open and read .txt files. It should accept file's name by inputting from
user. If the user input
'quit' , the program should stop; if the user input a file name, the program
should handle FileNotFounderror, and should print out the number of words in the file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
