def split_by_size(text: str, size: int) -> list[str]:
    """
    Splits text into an array with chunks of "size" characters.  The last part may be shorter than the other parts.

    Parameters
    ------------
    text: str
        The text to be split up.
    size:
        The size of each chunk

    Returns
    ------------
    str[]
        An array of strings (parts)
    """
    parts = []

    for i in range(0, len(text), size): 
        parts.append(text[i:i+size]) #Add parts of size

    return parts