<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def marquee(text="", width=78, mark='*'):
 """ Return the input string centered in a 'marquee'. Args: text (str):
 Input string width (int):
 Width of final output string. mark (str):
 Character used to fill string. :Examples: '**************** A test ****************' marquee('A test',40, ' ') ' A test ' """

    if not text:
        return (mark*width)[:width]

    nmark = (width-len(text)-2)//len(mark)//2
    if nmark < 0: 
        nmark = 0

    marks = mark * nmark
    return '%s %s %s' % (marks, text, marks)