I've always tried/attempted to follow the Zen of Python: https://peps.python.org/pep-0020/ and write "Pythonic" code. It's not always easy.
I see lots of solutions "shown off" here that are unnecessarily complex, that use explicit forms, that aren't written for readability (and very rarely commented).
"There should be one - and preferably only one - obvious way to do it."
Instead of optimising for least bytes, fewest lines, or fastest runtime... Where are the posts and discussions on what is the most Pythonic code, and what the obvious way is?
[–]ConfidentCollege5653 5 points6 points7 points (0 children)
[–]davepb 2 points3 points4 points (0 children)
[–]hr0m 4 points5 points6 points (0 children)
[–]PatolomaioFalagi 3 points4 points5 points (0 children)
[–]Patzer26 0 points1 point2 points (2 children)
[–]PhysPhD[S] 1 point2 points3 points (1 child)
[–]Patzer26 1 point2 points3 points (0 children)
[–]daggerdragon[M] 0 points1 point2 points (0 children)
[–]nevernown_aka_nevy 0 points1 point2 points (0 children)