# 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 remove_comments(string):
    """ Return a copy of string, but with all characters beginning at the first
    instance of ‘#’ removed. If there is no # in the string, return the input
    unchanged."""
    
    
def find_in_str(query, string):
    """ Return the index of the first character of the first instance of
    query found in string. If no instance is found, return -1.
    Examples: find_in_str("a", "Babbage") => 1
              find_in_str("quick", "The quick brown fox") => 4
              find_in_str("z", "Babbage") => -1 """
                  