Question: 3 5 - Write a function in python to count the number lines in a text file Country . txt which is starting with an
Write a function in python to count the number lines in a text file Countrytxt which is starting with an alphabet W or H If the file contents are as follows: Whose woods these are I think I know. His house is in the village though; He will not see me stopping here To watch his woods fill up with snow. The output of the function should be: W or w : H or h :
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
