Page 1 of 1

Python: Comments and Print Statements

Posted: Mon Jul 07, 2025 4:51 am
by The Jason
Single or double quotes are OK for the print function and comments are always one-line.

Code: Select all

print('This is printed in Python within single quotes.')

# This is a comment.  It's not displayed.  It only makes a one-line comment.

print("This is printed in Python within double quotes.")