You can also use three single-quotes instead (’’’). Docstrings are typically used for programming documentation and code summaries. Python’s style guide recommends using the hash character (#) for multi-line block comments. [3] X Research source If you’re just getting started with Python, check out how to turn integers into strings.

Visual Studio: Press Ctrl+K then Ctrl+C Spyder IDE: Ctrl+1 IDLE: Alt+4 Jupyter Notebook: Ctrl+/ PyCharm: Ctrl+⇧ Shift+/