# Comment

*noun*

say it: **“KOM-ent”** **/ˈkɑmɛnt/**

A note for people reading the code, starting with #; Python ignores everything from the # to the end of the line.

## What is a **comment** in Python?

A **comment** is a note for people reading the code. Python ignores it. A comment starts with `#` and runs to the end of the line.

```python
# Work out the total for the order
price = 12.50
quantity = 3
total = price * quantity  # 37.5
```

## In a sentence

- “The **comment** # prices include tax explains the next line.”
- “She added a **comment** above the tricky loop so her teammates would follow it.”

Level: Novice · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=1)

Updated: November 19, 2026

## In other subjects

- [Comment in C#](https://www.ask-codey.com/glossary/comment-c-sharp)
- [Comment in CSS](https://www.ask-codey.com/glossary/comment-software-development)
- [Comment in Java](https://www.ask-codey.com/glossary/comment-java)
- [Comment in JavaScript](https://www.ask-codey.com/glossary/comment-javascript)
- [Comment in PowerShell](https://www.ask-codey.com/glossary/comment-powershell)
- [Comment in Unix](https://www.ask-codey.com/glossary/comment-unix)

Source: https://www.ask-codey.com/glossary/comment
