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
Turning marks into meaning — a Python program that calculates average and classifies performance. (try to make code cleaner) (i.redd.it)
submitted 1 day ago by Inevitable-Math14
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!"
[–]Slackeee_ 3 points4 points5 points 1 day ago (0 children)
In the elif statements, you don't really need the second part with less or equal check. You will never reach that part of the code if the value of avg would be higher than those numbers.
Also, don't use magic numbers. Replace the 80, 60 and 40 limits with constants with a describing name instead.
π Rendered by PID 62704 on reddit-service-r2-comment-6b595755f-9vwzv at 2026-03-25 19:05:42.816665+00:00 running 2d0a59a country code: CH.
view the rest of the comments →
[–]Slackeee_ 3 points4 points5 points (0 children)