def echo(word:str, n:int, toupper:bool=False) -> str:
    """
    Repeat a given word some number of times.

    :param word: word to repeat
    :type word: str
    :param n: number of repeats
    :type n: int
    :param toupper: return in all caps?
    :type toupper: bool
    :return: result
    :return type: str
    """
    res=word*n
    if (toupper):
        res=res.upper()
    return res