def find_delimiter_loc(delimiter, str):
    """Return a list of delimiter locations in the str"""
    
    out = []
    pos = 0
    while pos < len(str):
        if str[pos] == "%":
            out.append(pos)
        pos += 1

    return out