Title: Comment Statement and Video
Course: CPS 120: Introduction to Computer Science ~ Master (Aug/2015) OLD > Section: Learning Units

Activities

- Watch the Python Comment Statement video (4:12 minutes), Script.

A Python comment is any line or part of line that begins with a pound sign (#).

Comment syntax:

# <comment>
Or
<Python statement> # <comment>

Comment Examples

# Here is a whole-line comment
print ("Hello!") # Here is an end-of-line comment