def consolidate(lines): """Sum line amounts and return the figure for the document footer.""" return round(sum(lines), 2)