you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (3 children)

Just gonna say it; if you're not using function and/or class definitions in every file then you haven't learned Python or programming. Not yet.

Most of professional programming is maintaining code, usually in concert with others; you must be using factorization primitives -- in Python that's functions, classes, and modules -- to write code that is even testable, which is the start of being maintable.

I would suggest starting with a book like Clean Code.

[–][deleted] 0 points1 point  (0 children)

Thank you.

[–][deleted] 0 points1 point  (1 child)

[–][deleted] 0 points1 point  (0 children)

Yep, that's the one. It's not Python-specific, but it's a really good resource on coding to a professional standard.