import logging


def find(string, character):
    """
    https://stackoverflow.com/questions/11122291/how-to-find-char-in-string-and-get-all-the-indexes

    Parameters
    ----------
    string : string.
    character : character to be found in string.

    Returns
    -------
    list
        DESCRIPTION.

    """
    logging.info(
        "find(string = %s, character = %s) found character in string on indexes: %s",
        string,
        character,
        [i for i, ltr in enumerate(string) if ltr == character],
    )
    return [i for i, ltr in enumerate(string) if ltr == character]