def render_sum(children):
 if (len(children) == 1):
  return children[0]
 children_latex = [k.latex for k in children]
 latex = ''.join(children_latex)
 tall = any((k.tall for k in children))
 return LatexRendered(latex, tall=tall)

def render_sum ( children ) : if ( len ( children ) == 1 ) : return children [ 0 ] children_latex = [ k . latex for k in children ] latex = '' . join ( children_latex ) tall = any ( ( k . tall for k in children ) ) return LatexRendered ( latex , tall = tall )
concatenate elements .