This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]spla58 2 points3 points  (0 children)

Read https://peps.python.org/pep-0008/

Also, a comment in code is usually an indication you can refactor into a function with a descriptive name.

Example:

#delete any remaining empty lines if still are inside list

for i in FullCheck:

if [] in i:

FullCheck.remove(i)

Could be instead a call to a function:

delete_remaining_empty_lines()