def ln(label):
 label_len = (len(label) + 2)
 chunk = ((70 - label_len) // 2)
 out = ('%s %s %s' % (('-' * chunk), label, ('-' * chunk)))
 pad = (70 - len(out))
 if (pad > 0):
  out = (out + ('-' * pad))
 return out

def ln ( label ) : label_len = ( len ( label ) + 2 ) chunk = ( ( 70 - label_len ) // 2 ) out = ( '%s %s %s' % ( ( '-' * chunk ) , label , ( '-' * chunk ) ) ) pad = ( 70 - len ( out ) ) if ( pad > 0 ) : out = ( out + ( '-' * pad ) ) return out
draw a 70-char-wide divider .