The most basic comment starts with a hash sign and continues until the end of the line:
>>> # Comment from hash to end of line
>>> astring = '# This is not a comment' >>> astring '# This is not a comment'
""" Chapter 1 of NumPy Beginners Guide. Another line of comment. """
We refer to this type of comment as triple-quoted for obvious reasons. It also is used to test code. You can read about testing in Chapter 8, Assuring Quality with Testing.