# Author: Scott Wehrwein
# Date: 5/12/25
# Some string processing functions

def count_e(string):
    """ Return the number of 'e' characters in string. Count only lower-case
    e's. Precondition: string is a string."""
    count = 0
    for c in string:
        if c == "e":
            count += 1
            
    return count

    
def find_all(query, string):
    """ Return a list of places in string where where the substring
    query appears. Each element of the returned list is an index
    of the beginning of the substring. Overlapping copies of the query
    are not considered.
    find_all('a', 'abab') => [0, 2]
    find_all('ab', 'abbab') => [0, 3]
    find_all('bb', 'bbb') => [0]
    find_all('z', 'the quick brown fox') => []
    """
                  