Python Built-in Function print() Displays Text

print() is a built-in Python function that instructs the computer to display text on the screen. "Hello, World!" is a string, which is a sequence of text. In Python, strings are enclosed in quotes (either single ' or double "). Anything after a # symbol is a comment. Python ignores comments, but they are useful for explaining code to human readers.

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories