# Quiz: Writing Comments in Python

DevFeed: [Quiz: Writing Comments in Python](<https://devfeed.tech/articles/quiz-writing-comments-in-python-guide-89667.md>)

Original publisher: [Read original article](<https://realpython.com/quizzes/python-comments-guide/>)

Author: Real Python

Published: 2026-10-18T12:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [avoid](<https://devfeed.tech/tags/avoid.md>), [best](<https://devfeed.tech/tags/best.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [python](<https://devfeed.tech/tags/python.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

This 12-question interactive quiz tests knowledge of Python comments and docstrings, including when comments help teammates and which kinds to avoid.

## Source excerpt

Test your understanding of how to write clean, useful Python comments, from basic syntax and docstrings to the comment types you should avoid.