def marquee(txt='', width=78, mark='*'):
 if (not txt):
  return (mark * width)[:width]
 nmark = ((((width - len(txt)) - 2) // len(mark)) // 2)
 if (nmark < 0):
  nmark = 0
 marks = (mark * nmark)
 return ('%s %s %s' % (marks, txt, marks))

def marquee ( txt = '' , width = 78 , mark = '*' ) : if ( not txt ) : return ( mark * width ) [ : width ] nmark = ( ( ( ( width - len ( txt ) ) - 2 ) // len ( mark ) ) // 2 ) if ( nmark < 0 ) : nmark = 0 marks = ( mark * nmark ) return ( '%s %s %s' % ( marks , txt , marks ) )
return the input string centered in a marquee .