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
Write a function in Python that counts the number of “Me” or “My” (both in upper case and lower case ) words present in
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am