Skip to content
AgileLogics
2 min read

Comments

A comment is a note in the code that Python ignores completely — it's for humans reading the code, not for the computer. Anything after # on a line is a comment.

# Calculate the total price including tax
total = price * 1.08

Use comments to explain why something non-obvious is done, not to restate what the code already says clearly.