Question: Q) Write a python program to find the wordcount in a file (input.txt) for each line and then print the output. o Finally store the
Q) Write a python program to find the wordcount in a file (input.txt) for each line and then print the output. o Finally store the word & counts in an appropriate data structure and write the output from the data structure to an output.txt file. Example: Input: a file includes two lines: Python Course Deep Learning Course
Output: Python Course Deep Learning Course Word_Count: Python: 1 Course: 2 Deep: 1 Learning: 1 Note: Your program should work for any number of lines.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
