Page 1 of 1

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

Posted: Sat Nov 27, 2021 2:39 pm
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