Question: Exercise 3.1 (word count.py ). string appears inside the chosen file. If the file does not exist, continue asking for a filename until one is
Exercise 3.1 (word count.py ). string appears inside the chosen file. If the file does not exist, continue asking for a filename until one is given that exists. Use your source code file as test input. Make sure to test files with that contain the same word multiple times ? $ python3 word-count.py 2 Please enter a filename: word count.py 3 Please enter a string to search for: print 4 The string 'print' appears 102 times in the file 'word_count.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
