Print

Print[expr]

prints expr as output.

Details

  • In a notebook, Print generates a cell with style "Print".
  • Print can print any expression, including graphics and dynamic objects.
  • Print[expr1,expr2,] prints expri concatenated together, effectively using Row. »
  • With a textbased interface, Print ends its output with a single newline (line feed).
  • You can arrange to have expressions on several lines by using Column. »
  • Print sends its output to the channel $Output.
  • Print uses the format type of $Output as its default format type.

Examples

open allclose all

Basic Examples  (2)

Print x+y, then print a+b:

In[1]:=
Click for copyable input

Print the first 5 primes:

In[1]:=
Click for copyable input

Scope  (7)

Generalizations & Extensions  (1)

Applications  (2)

Properties & Relations  (1)

See Also

PrintTemporary  CellPrint  Paste  Echo  EchoFunction  Message  Assert  Monitor  Put  Write  Reap  EvaluationMonitor  StepMonitor  FilePrint  MessageDialog

Tutorials

Introduced in 1988
(1.0)
| Updated in 2007
(6.0)