def pad(text, **kwargs):
    """ Return a padded text filled with a given character based on a given
    orientation.
    The padded text is sized by default as 79 characters to default as a valid
    pep8 line of code. Add a size parameter will change the padded text size.

    :param text: The text to be padded.
    :key fill: Character to be used to pad the text.
    :key orientation: Orientation to place the fill character. Default is
    'left' but it can be also 'center' and 'right'.
    :key size: Size to be used to pad the text. By default is 79.
    :return: A padded text. """
    size = kwargs.get("size", 79)
    fill = kwargs.get("fill", " ")
    orientation = kwargs.get("orientation", "left").lower()
    align = "<"
    if orientation == "center":
        align = "^"
    elif orientation == "right":
        align = ">"
    pad_format = "".join(["{0:{fill}{align}", str(size), "}"])
    return pad_format.format(text, fill=fill, align=align)