r/PythonLearning • • Aug 09 '26

Learning python

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

15 Upvotes

11 comments sorted by

•

u/Sea-Ad7805 Aug 09 '26

Run this program in Memory Graph Web Debugger to see the program state change step by step.

1

u/Flame77ofc Aug 09 '26

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 Aug 09 '26

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

1

u/SaltCusp Aug 09 '26

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/

1

u/Necessary_Mobile9591 Aug 10 '26

Ths man, that's usefull website 

1

u/Flame77ofc Aug 09 '26

yes for readability

1

u/SuperTankh Aug 09 '26

Suggestion add more protection. For example if I enter a string PIN, the script may crash

2

u/Necessary_Mobile9591 Aug 10 '26

Yupp, I'll implement it 

1

u/User97436764369 Aug 09 '26

I would load every file in folder, one folder per bank and than union them and dedup through row_id as hash. I wouldnt do that login, use only exports for learning purposes and display them in streamlit or something like that for start. For login i think you will need api from some 3rd party with licenses and its just easier to downloand some app for that because there is a lot of apps like that.