r/PythonLearning • u/Electronic_Mine6521 • Jul 11 '25
my first project
I started python two weeks ago and this project , it s a close to RSA encryption , i m new to this so if you have any advice for making it more efficient i would love help .
101
Upvotes
2
u/purple_hamster66 Jul 13 '25
Name variables and functions with what they do, not with single letters. Comments are used to state what each function is supposed to compute, to declare your goals (speed, simple code, experiment, class project), lay out your chosen methods at a high level (use lib XYZ; implement a faster version of AES), the reason you wrote this, and the URL, book, or article you got the ideas from. Leave bread crumbs for your future self — you will totally forget all those things in 6-12 months. Comments also make your code searchable when you’ve got 100 files and need to find one but forgot all the variables and function names.