Home / Python Tips Generated By ChatGPT / Multi-line Comments in Python Use triple quotes for multi-line comments or docstrings. Source Code """ This is a longer comment spanning multiple lines """ def my_function(): """This is a docstring.""" pass