Print is a programming operation that writes a value or its textual representation to an output destination, often standard output.
Get Programming: Learn to code with Python
A print statement is a language construct that sends specified values to a program's output stream.
- How it is used
- Displays calculated values and instructions to users, rather than merely letting a programmer peek at console expressions.
- How deep it goes
- Explains evaluated expressions, mixed-type arguments, automatic spaces, and string concatenation; does not detail output-stream internals.
- Examples
- Uses arithmetic and strings, a formatted division result, labeled conversion output, and game instructions.
- What you can do after
- Build it from scratch: display calculated results and labeled output in a small Python program.
Read how Get Programming: Learn to code with Python explains print →
A Pythonic Adventure: From Python basics to a working web app
The Python print function writes text or other values to standard output.
- How it is used
- Displays greetings, prompts’ results, and customer order details while building a small coffee shop application.
- How deep it goes
- Demonstrates repeated calls and values alongside text, without discussing print() internals or formatting rules.
- Examples
- Uses a coffee shop welcome message, customer responses, and a receipt-like order summary.
- What you can do after
- Apply it via Python’s print() function to display fixed text and collected values in a runnable program.
Read how A Pythonic Adventure: From Python basics to a working web app explains print →
Learn AI-Assisted Python Programming, Second Edition
A print statement is a language construct that writes a value or text representation to an output stream.
- How it is used
- Uses print for ordinary screen output and for inspecting program behavior during debugging.
- How deep it goes
- Explains calls, arguments, Python 3 parentheses, and strategic placement for tracing values, but not output-stream internals.
- Examples
- Demonstrates greetings, calculated square areas, and tracing words incorrectly counted by a loop.
- What you can do after
- Diagnose logical errors by printing values and messages at selected execution points.
Read how Learn AI-Assisted Python Programming, Second Edition explains print →
Learn Rust in a Month of Lunches
Printing is the operation of writing textual or formatted data to an output stream.
- How it is used
- Introduces printing as a first Rust operation for producing text and formatted values during beginner programs.
- How deep it goes
- Explains runnable syntax, formatting forms, escapes, raw strings, bytes, Unicode, pointers, and layout controls without deeper internals.
- Examples
- Uses tabs, multiline strings, escaped paths, raw strings, byte output, Unicode escapes, pointer addresses, and aligned news-style text.
- What you can do after
- Apply it via Rust’s print! and println! macros to produce readable text and formatted program output.
Kafka Streams in Action, Second Edition
KStream.print is a Kafka Streams terminal operation that prints stream records to an output destination such as the console.
- How it is used
- Supports development-time inspection of records at a chosen point in a Kafka Streams topology.
- How deep it goes
- Explains console output, terminal behavior, chaining limits, and the contrast with peek, but does not detail implementation internals.
- Examples
- Uses uppercase word transformation, ZMart purchase processing, and stock-ticker KStream-versus-KTable output examples.
- What you can do after
- Diagnose/debug with it by viewing records emitted at a topology point and comparing stream output with table updates.
Read how Kafka Streams in Action, Second Edition explains print →
Also covered in
- The Well-Grounded Python Developer: How the pros use Python and Flask
- The Well-Grounded Rubyist, Fourth Edition
- Julia as a Second Language
- The Quick Python Book, Fourth Edition
- Clojure: The Essential Reference
- Build Applications with Local AI Models on a Mac
- Python How-To
What to know first
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- atomic typeAn atomic type is a type whose supported accesses and operations are indivisible with respect to concurrent execution and provide defined synchronization semantics.
- integerAn integer is a whole-number mathematical value, including negative numbers, zero, and positive numbers, with no fractional part.
- newlineA newline is a character or character sequence that marks the boundary between consecutive lines of text.
Related concepts
- putscontrasts with · An output operation that writes data to an I/O stream and normally appends a newline.
- __str__uses · __str__ is a Python special method that returns an object's informal, human-readable string representation.
- debuggingused by · Debugging is the systematic investigation of software behavior to identify, understand, and correct defects or unexpected behavior.
- newlineproduces · A newline is a character or character sequence that marks the boundary between consecutive lines of text.
- standard streamsuses · Standard streams are the conventional process channels for input, normal output, and diagnostic output.
Questions about print
What is print?
Print is a programming operation that writes a value or its textual representation to an output destination, often standard output.
Which Manning books explain print?
Get Programming: Learn to code with Python, A Pythonic Adventure: From Python basics to a working web app, Learn AI-Assisted Python Programming, Second Edition, Learn Rust in a Month of Lunches and Kafka Streams in Action, Second Edition.
What should I know before learning print?
Manning books that teach print usually introduce Python, atomic type, integer and newline first.
What is the difference between print and display?
Print is a programming operation that writes a value or its textual representation to an output destination, often standard output. display is a Ruby output method that writes an object's string representation to a specified output stream, using standard output by default.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




