Python Comments
Comments are notes for humans. Python ignores them while running. One line starts with #. Write why, not “x = 1 assigns 1”. Obvious code plus a noisy comment looks like copy-paste notes.
A docstring is """...""" right under def or class. help(fn) shows it. Several # lines can explain a tricky block. Don’t confuse a triple-quoted string in the middle of code with a real docstring — placement under def/class matters.
Python Comments — output — 72. The # lines do not print.
Comment vs docstring in one sentence each.