Python: Comments and Print Statements

Post Reply
User avatar
Jason
Site Admin
Posts: 767
Joined: Sun Dec 21, 2025 8:56 pm

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.")

 

POSTREACT(ions) SUMMARY

Post Reply