python comment

python comment starts with #

Since Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it:

"""
This is a comment
written in
more than just one line
"""
print("Hello, World!") 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *