DEV Community

Cover image for How to Use Comments in Python?
Ganesh Kumar
Ganesh Kumar

Posted on

How to Use Comments in Python?

Hello, I'm Ganesh Kumar, and I'm building LiveReview — a blast-radius aware AI code review built for your business-critical systems. Star us to help devs discover the project, give it a try, and share your feedback to help improve the product.
There are a few types of comments we will be using.

  1. Using with #
# Before Print Statement Using Comments
print("yoo ")
Enter fullscreen mode Exit fullscreen mode
  1. Using with ''
'''
Hello, This is a multi-line comment
Second line
'''
print("Yoo ")
Enter fullscreen mode Exit fullscreen mode

This is usually used if there is a multi-line explanation.

Mainly used under a function; on hovering, the extension will just display the comment.

  1. Using to skip some part of the code
# print("Hi")
print("Yoo ")
Enter fullscreen mode Exit fullscreen mode

# will help us to skip the first print statement.

Why Are Comments Usually Used in Production?

  1. A developer will not work all in one; he works in a team. If the team can understand why each function or code is written, others will not spend time understanding the full code.
  2. It is usually used for debugging, skipping some code parts.
  3. For self-reference for future use.

What's next?

As we understood about comments, in the next article we will understand variables,

how they actually work, etc.
I'm building LiveReview, a blast-radius aware AI code review built for your business-critical systems.

Instead of presenting every diff with equal emphasis, LiveReview scores each change by blast radius — how far its impact reaches through your call graph — so you can focus attention where it actually matters.

Spend code review effort where business risk is highest — not spread evenly across every diff.

⭐ Star it on GitHub:

GitHub logo HexmosTech / LiveReview

Blast-Radius Aware AI Code Review for Business-Critical Systems

LiveReview

gitleaks.yml osv-scanner.yml govulncheck.yml semgrep.yml dependabot-enabled mcp-testcases.yml

LiveReview: Blast-Radius Aware AI Code Review for Business-Critical Systems

LiveReview is an AI code reviewer that scores every hunk of a diff by blast radius: how far a change reaches through your call graph, how much persistent state it touches, and how well-tested it is. A 3-line change to a shared auth check can outrank a 300-line UI tweak. Your team's attention goes to the highest-risk code first, not spread evenly across every diff.

blast-radius-demo.mp4

LiveReview's Blast Radius & Review Priority scoring, live in the diff viewer.

The exact math, not a black box Visualize blast radius at a glance Every factor that feeds the score
How does Blast Radius scoring work? (a more technical explanation)

Here's the goal:

  • A 3-line fix in a function used by 40 other files, that also writes to a database, should score high.
  • A 300-line UI change in one file, fully covered by…

Click below to try LiveReview with your codebase:

LiveReview Banner

Top comments (0)