Python - Comments
Code Life
By Pierre Marsaa
Comments
Comments are a way to add notes to your code. They are not executed by the interpreter and are used to explain what the code does.
In Python, there are two ways to write comments:
- Single-line comments start with a hashtag (#) symbol and continue until the end of the line.
- Multi-line comments are enclosed in triple quotes (""").
↗️
Loading editor...
↶
↷
Verify