print

print(template, values)

print(template, values, precision)

Try it yourself:

See also:

print(): render a value as text

print(x) produces a readable textual representation of a value or expression. It is useful for logs, labels, diagnostics, and displaying symbolic results.

Readable output

Printing is about representation, not changing the underlying value. An expression may be printed in a conventional mathematical form while remaining available for further evaluation.

Related formatting tools

Use format() to control numeric notation, numeric() for approximation, and parse() to read text back as an expression. simplify() can make printed formulas shorter.

Caveat

Formatted text is for people, not necessarily a lossless data interchange format. Preserve original values when later computation needs full precision.

All functions