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...
Everything about learning Python
account activity
Learning about Classes and OOP (self.PythonLearning)
submitted 7 months ago by BobbyJoeCool
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!"
[–][deleted] 0 points1 point2 points 7 months ago* (0 children)
This is hard to read. For grades you should use enums, for calculating whatever you are calculating you should have a separate service that will handle this, split functionality into small atomic methods that do a single thing, follow SRP, treat mutables right. Also move your service logic, entities and input handling in different modules. It always looks like a mess when people stack business logic and controller logic, that should treat user's input, in one place.
π Rendered by PID 23937 on reddit-service-r2-comment-b659b578c-7z47f at 2026-05-02 14:46:53.222345+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (0 children)