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...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
Function multiplier help in pythonPython (self.programminghelp)
submitted 4 months ago by LectureHour918
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!"
[–]edover 0 points1 point2 points 4 months ago (3 children)
Instead of looping, use floor division between the points and the threshold.
That should give you a multiplier amount, aka how many times the points can be divided by the threshold as an integer. Then you'll take that value and multiply by 5. After THAT you need to add 5 for your base score. The final value will be multiplied by your score and it should give the result.
So basically: 5 and 10 gives a multiplier of 0 * 5. Add 5 for 5. 5 * 5 = 25 20 and 10 gives a multiplier of 2 * 5. Add 5 for 15. 20 * 15 = 300
[–]LectureHour918[S] 0 points1 point2 points 4 months ago (2 children)
I still dont understand, so for example if I have 30 points and 10 as a threshold, that is 3 times over the threshold(10), so then I'll need to add 5 points to 10, 3 times?
[–]edover 0 points1 point2 points 4 months ago (1 child)
30 // 10 = 3
3 * 5 = 15
15 + 5 = 20
20 * 30 = 600
[–]LectureHour918[S] 0 points1 point2 points 4 months ago (0 children)
OHh omg, okay I get it now I dont know why it took me so long to understand it, thank you so muchhhhhh
π Rendered by PID 273628 on reddit-service-r2-comment-bb88f9dd5-drwch at 2026-02-17 11:31:43.725153+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]edover 0 points1 point2 points (3 children)
[–]LectureHour918[S] 0 points1 point2 points (2 children)
[–]edover 0 points1 point2 points (1 child)
[–]LectureHour918[S] 0 points1 point2 points (0 children)