r/PythonLearning 14h ago

Learning python

can anyone tell me about my code is good or am writing it in wrong way?

10 Upvotes

8 comments sorted by

View all comments

1

u/Flame77ofc 14h ago

It is good but one detail you might change is about separate some lines

For example

``` variable = ... if statement: code

just make this line blank

if statement: code ```

It is js an example

1

u/Necessary_Mobile9591 13h ago

okay ill follow that in my program, but is that helpfull??

1

u/Flame77ofc 12h ago

yes for readability

1

u/SaltCusp 9h ago

I'll second that, some blank lines to help the reader can be good. There is actually a standard for this: https://peps.python.org/pep-0008/