def replicate(x, n):
    """
    Return a sequence containing n copies of x.

        >>> replicate(True, 3)
        [True, True, True]

    If n=0, this will return the empty list.

        >>> replicate(101, 0)
        []
    """
    return [x]*n