DEV Community

Vlad Solokha
Vlad Solokha

Posted on

1

Adding Comments to Code: Python

Writing good comments in code helps other programmers understand how it works.

image

Below is an example of bad comments in code.

image

The downside to so many comments is it makes your codebase very long and at times hard to read. So it's up to you to find a good balance.

Let me know what you think in comments below.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay