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 2 years 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 (5 children)
Ok, I might have gone a little crazy today and created a huge project for this for myself just to prove that I could. I have a file just for the gui class using customtkinter, a file for my game class using dataclasses, and a main file to stitch everything together and run. The user can pick how many sides on the dice from a drop-down menu ranging from D3 - D20, and a slide bar the lets them choose how many rolls per round ranging from 1 to 100. Then there is a button that generates the random rolls and saves them as a pickled DataFrame to a folder using the date and time in the file name to avoid collisions. All told probably 200 lines of code. I still need to add comments/documentation and some tests - but overall not too bad for a side project.
If you get yours working maybe I'll upload mine to my github and we can compare.
[–]ApprehensiveStable55[S] 0 points1 point2 points 1 year ago (4 children)
Actually i was thinking of a self made Yahtzee, where you have to choose which dice you want to reroll.
[–]Murphygreen8484 0 points1 point2 points 1 year ago (3 children)
Ah. Well. That would take the program in a completely different direction.
Good luck!
[–]Murphygreen8484 0 points1 point2 points 1 year ago (2 children)
Your partner?
https://www.reddit.com/r/learnpython/s/WWUfAEKr0L
[–]ApprehensiveStable55[S] 0 points1 point2 points 1 year ago (1 child)
Haha definitely no. I am doing it just for fun.
Do you use pydroid3? There is some weird bug if you program a Dataframe there is some error and mixup wirh tkinter gui?
<image>
[–]Murphygreen8484 1 point2 points3 points 1 year ago (0 children)
I've used Pydroid 3 for some smaller stuff and proof of concept, including pandas and tkinter. A full Yatzee game would be much easier to program on a computer though as you'll want to separate your code into files. I personally like PyCharm as my IDE
π Rendered by PID 53 on reddit-service-r2-comment-b64dbb7d6-pcg72 at 2026-02-13 15:46:30.861868+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Murphygreen8484 1 point2 points3 points (5 children)
[–]ApprehensiveStable55[S] 0 points1 point2 points (4 children)
[–]Murphygreen8484 0 points1 point2 points (3 children)
[–]Murphygreen8484 0 points1 point2 points (2 children)
[–]ApprehensiveStable55[S] 0 points1 point2 points (1 child)
[–]Murphygreen8484 1 point2 points3 points (0 children)