Python Tip #300 (of 365): Separate the steps of a function with blank lines. If ...

@treyhunner@mastodon.social

Python Tip #300 (of 365):

Separate the steps of a function with blank lines.

If you're using an auto-formatter like ruff or Black, you won't have control over most of your whitespace.

But how you use blank lines within functions is still up to you.

More on this:
pym.dev/embrace-whitespace/

๐Ÿงต (1/3)

#Python #DailyPythonTip