What are 'Comments' and why should I use them?

Asked by kemiadewale · 6 months ago

1 Answer

54
amorebise · 6 months ago Top Answer

Comments are notes you leave for yourself or others, starting with a #. Python completely ignores them.

I always tell my students: write comments like you are leaving directions for a friend visiting your house for the first time. In six months, you will forget why you wrote a piece of code. Your comments will save you a lot of stress!

Log in to add a comment.