GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • WOLFRAM
  • Products
  • AI AccessUse with Mathematica and Wolfram|One
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App
  • Wolfram|Alpha Website
  • Wolfram|Alpha APIs
  • Wolfram AI Ecosystem

This view

  • Original page
  • New address

GeezerVison is showing reference.wolfram.com — Print: Show an expression as output—Wolfram Documentation

Print[expr]

prints expr as output.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
See Also
Tech Notes
Related Guides
Related Workflows
History
Cite this Page

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 text‐based 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 all close all

Basic Examples  (2)

Print x+y, then print a+b:

Wolfram Language code: Print[x + y];Print[a + b]

Print the first 5 primes:

Wolfram Language code: Do[Print[Prime[n]], {n, 5}]

Scope  (8)

Print graphics:

Wolfram Language code: Print[Graphics[Circle[]]]
Wolfram Language code: Print[Graphics3D[Sphere[]]]

Print a column of expressions:

Wolfram Language code: Print[Column[{x, aaa, z}]]

Print normally prints in StandardForm, so strings do not have quotes:

Wolfram Language code: Print["this is a string"]

Print in InputForm:

Wolfram Language code: Print[InputForm["this is a string"]]

Print in TraditionalForm:

Wolfram Language code: Print[TraditionalForm[Integrate[1 / (x ^ 3 - 1), x]]]

Print in a specified style:

Wolfram Language code: Print[Style[aaa, 18, Red]]

Print active controls:

Wolfram Language code: Print[Slider[]];Print[InputField[]]

Print a button:

Wolfram Language code: Print[PasteButton["xyz"]]

Print several expressions concatenated together:

Wolfram Language code: Print[x ^ 2, "=", 12434]

Applications  (2)

Print Mersenne primes as soon as they are found:

Wolfram Language code: Do[If[PrimeQ[2 ^ n - 1], Print[n]], {n, 50, 100}]

Print a sequence of graphics:

Wolfram Language code: Do[Print[Graphics[Disk[], ImageSize -> 10n]], {n, 3}]

Properties & Relations  (2)

The actual expression returned by Print is Null:

Wolfram Language code: Print[x]//InputForm

Print accepts any number of arguments; if zero are given, a blank line or cell is printed:

Wolfram Language code: Print[]

Compare with a row that has no elements:

Wolfram Language code: Row[{}]

See Also

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

Tech Notes

    ▪
  • Repetitive Operations
  • ▪
  • Generating Unstructured Output

Related Guides

    ▪
  • Basic Input & Output in Programs
  • ▪
  • Procedural Programming
  • ▪
  • WSTP Packets
  • ▪
  • Palettes
  • ▪
  • Clipboard Operations
  • ▪
  • Notebook Document Generation

Related Workflows

    Related Workflows
    ▪
  • Print Intermediate Values of a Variable

History

Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2007 (6.0)

Wolfram Research (1988), Print, Wolfram Language function, https://reference.wolfram.com/language/ref/Print.html (updated 2007).

Text

Wolfram Research (1988), Print, Wolfram Language function, https://reference.wolfram.com/language/ref/Print.html (updated 2007).

CMS

Wolfram Language. 1988. "Print." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/Print.html.

APA

Wolfram Language. (1988). Print. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Print.html

BibTeX

@misc{reference.wolfram_2026_print, author="Wolfram Research", title="{Print}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Print.html}", note=[Accessed: 12-November-2026]}

BibLaTeX

@online{reference.wolfram_2026_print, organization={Wolfram Research}, title={Print}, year={2007}, url={https://reference.wolfram.com/language/ref/Print.html}, note=[Accessed: 12-November-2026]}

Top
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.