(Jun-25-2018, 10:18 AM)buran Wrote: Sorry, but I would disagree. What you provide is really bad example of comments (or if you want - really good example of bad comments). Check PEP8 about inline comments
Overuse of inline comments makes it hard to read the code and for simple lines (like these) are completely redundant. Good descriptive variable names would do. A short single-line block comment may be OK, but inline comments - definitely not. And given that it is actually a function - a docstring would be more than enough in this case (i.e. for a simple function like this one)...
Not worth arguing over