Aug-12-2022, 02:41 PM
(This post was last modified: Aug-12-2022, 03:52 PM by rob101.
Edit Reason: to reflect the updated post
)
I came to Python from C (yes, C, not C++) and although I did not have advanced skills in C, I knew enough to write some reasonable code.
Switching to Python was a bit of a mind shift. The first lesson I learned was that Python has almost everything (if not everything) needed, as is, and as such, I now only (and only if really pushed) ever use an external library if I can't see any other way:
Please reformat your code so that it's easier for OPs to read and test it.
Switching to Python was a bit of a mind shift. The first lesson I learned was that Python has almost everything (if not everything) needed, as is, and as such, I now only (and only if really pushed) ever use an external library if I can't see any other way:
Regex
being a god example, but (IMHO) people over use it.Please reformat your code so that it's easier for OPs to read and test it.
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein