Question: In python, Write a function countAs ( filename ) which takes one string input. The argument is the filename. In the function, you need to
In python, Write a function countAsfilename which takes one string input. The argument is the filename. In the function, you need to open the given file in read mode and read the contents of the file. Loop over the contents and count the number of times the letter A or a appears in the file. Return the count.
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
