Syntax

Python Print to Console Syntax

In Python, print to console: prints a value to standard output — print("Hello")

Quick Answer

Syntax
print("Hello")
PythonSyntax

Print to Console

Code example
print("Hello")

Prints a value to standard output.

Learn More

How to print to console in Python

  1. Open your Python file or editor.
  2. Copy the example, then replace its sample names and values for your code.

Python Print to Console Syntax

Use print("Hello").

Related Syntax References

Frequently asked questions

What is the Python syntax for print to console?

Use this pattern: print("Hello")

Can I copy this Python code example?

Yes. Use Copy code and adapt the example to your program.

Is this Python syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify