Writing Comments in Python

Learn how to write Python comments that are clean, concise, and useful. Quickly get up to speed on what the best practices are, which types of comments it’s best to avoid, and how you can practice writing cleaner comments.

About Jackie Wilson

Jackie Wilson

Jackie teaches computer science full-time for Cecil College, and fell in love with Python many years ago when she realized it wasn't pseudocode, but an actual language.

» More about Jackie

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Edgar Isai on March 15, 2019

Thank you, these are very helpful tips.

Anonymous on March 15, 2019

Very useful, thanks!

Chaitanya on March 21, 2019

A nice way of explaining about comments, especially the purposes listed down is awesome :)

Jaya Z RP Team on March 29, 2019

This was wonderful Jackie!!

TheCthulhuKid on April 5, 2019

A video I wish I had seen when I started =) Cheers!

Tonya S on Aug. 6, 2019

Awesome video! I use comments quite often, possibly overuse them. Watching this helped me learn when and where to use then.

« Browse All Courses