Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
A print statement is a command in programming that displays text or values on the console. It allows programmers to output information to the user.
Related terms
Console: The console is like a TV screen where you can see the output of your program. It's where the text or values from print statements are displayed.
Output refers to any information that is produced by a program and shown to the user. In this case, the text displayed by a print statement is considered as output.
Syntax: Syntax refers to the rules and structure that define how code should be written in a specific programming language. The syntax for using print statements may vary depending on the programming language being used.