Write a function in Python that counts the number of “Me” or “My” (both in upper case and lower case ) words present in

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a function in Python that counts the number of “Me” or “My” (both in upper case and lower case ) words present in

Post by answerhappygod »

Write a function in Python that counts the number of “Me” or
“My” (both in upper case and lower case ) words present in a text
file “demostring.TXT”. If the “demostring.TXT” contents are as
follows:
My second programming class for me and my peers was Python. It gave
me chance to practice more.
The output of the function should be: Count of Me/My in file:
4
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply