In this tutorial, you’ll cover some of the basics of writing comments in Python. You’ll learn how to write comments that are clean and concise, and when you might not need to write any comments at all.
In this article, you learn what a Python comment is, how to add comments to your code, common pitfalls to avoid, and how to create docstrings.