Tips for your Python work

I try to avoid making too many posts on the course blog, because I know some students find it annoying. Usually I will post only once a week, now that we are under way with the course — but this is an exception.

How to Properly Comment Your Code is a handout from an MIT course called A Gentle Introduction to Programming. You should look at it.

Python Comments

Comments in your code are not for me, the instructor. They are for YOU. When we learn a new programming language, we must figure things out as we go along. Writing clear, helpful comments will help you learn.

In professional code, comments are also useful for coders who come later and need to use or revise the code that someone else wrote. That will not be the case with your early code exercises, but you should know that comments are not only for beginners.