I am trying to write a program to count the occurrences of a specific letter in a string without the count function. I made the string into a list and set a loop to count but th
Use filter function like this
len(filter(lambda x: x==letter, myString))