A comment on the same line as code : Comments « Language Basics « Python






A comment on the same line as code

A comment on the same line as code

print 2+2  # A comment on the same line as code

           
       

Related examples in the same category

1.Comment in PythonComment in Python
2.Use # to start a commentUse # to start a comment