Page 1 of 1

Python: Comments and Print Statements

Posted: Wed Apr 08, 2026 11:15 pm
by 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.")