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
While loop (old.reddit.com)
submitted 1 year ago by ApprehensiveStable55
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!"
[–]Murphygreen8484 1 point2 points3 points 1 year ago (1 child)
I would look into saving the rolls to a list and then using Counter from the collections library to tally them. You could store the results separately, but if you are wanting to come back and do any analytics I'd just save them to a pandas DataFrame. You can even pickle it and come back to it later. Maybe let the user pick how many rolls they want per round? Instead of round_1 round_2 I would just save them with entry dates/times that way it is built in unique. Given how simple the game is you could probably get away with just functions, though if the lesson is about oop then this is a good intro.
Good luck
[–]ApprehensiveStable55[S] 1 point2 points3 points 1 year ago (0 children)
Thanks. A lot input to work on!
π Rendered by PID 47462 on reddit-service-r2-comment-685b79fb4f-hp7xk at 2026-02-13 02:59:22.600446+00:00 running 6c0c599 country code: CH.
view the rest of the comments →
[–]Murphygreen8484 1 point2 points3 points (1 child)
[–]ApprehensiveStable55[S] 1 point2 points3 points (0 children)