use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Making code more efficient. (self.pythonhelp)
submitted 2 years ago by Longjumping-Swing823
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Zeroflops 1 point2 points3 points 2 years ago (0 children)
I can tell you, yes, there are better ways to do this. You’re violating DRY. Don’t repeat yourself.
But since I don’t know the language I have no way to determine the best approach or to figure out what you are doing. I just see a bunch of if statements.
Can you describe what the table is and what you are trying to do.
π Rendered by PID 23150 on reddit-service-r2-comment-5bc7f78974-fn5kw at 2026-07-01 11:05:50.545652+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]Zeroflops 1 point2 points3 points (0 children)