Home / Python Tips Generated By ChatGPT / Comments for Code Documentation in Python Use # to add comments and document your code. Source Code # This is a comment explaining the next line of code print("Hello, World!")