Python CommentsAdding comments to code.ExamplesSingle Line CommentComment on its own line.# This is a comment print("Hello, World!") Try it YourselfInline CommentComment at the end of a line.print("Hello, World!") # This is a comment Try it YourselfMulti-line Comment (String Literal)Using triple quotes for multi-line comments.""" This is a comment written in more than just one line """ print("Hello, World!") Try it YourselfTest Your KnowledgePython QuizNo quiz available for this topic yet.PreviousNext