To write comments in Python, you can use the '#' symbol before the text you want to comment. The comment will be ignored by the interpreter and is used to explain the code or provide context.