Question: In python without using the count function eCount (s) Write the function eCount that counts how many times the letter e (either lowercase or uppercase)

In python without using the count function

eCount (s)

Write the function eCount that counts how many times the letter e (either lowercase or uppercase) occurs in a string. It takes a string s as input and returns an integer, the number of characters in the string that are e or E.

Please use a for loop to do the computation. I am banning the built-in function count for obvious reasons.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!