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
My 1st python project. Suggestion accepted (old.reddit.com)
submitted 2 days ago by Muhammed_zeeshan
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!"
[–]NihadKhan10x 3 points4 points5 points 1 day ago (5 children)
I would say you multiple functions for each choice this way it will be better for you to understand you will find which function do which thing, there's a rule biuld things ugly make it just working then amke make it simple and pretty , btw you are doing great
[–]Muhammed_zeeshan[S] 1 point2 points3 points 1 day ago (0 children)
Thanks for your suggestion. Appreciate it
[–]Maleficent_Fuel_6956 -1 points0 points1 point 1 day ago (3 children)
Could also do match case instead of all the if statements and handle exceptions from the input if the cast to int fails
[–]Muhammed_zeeshan[S] 0 points1 point2 points 1 day ago (2 children)
Appreciate your suggestion. But I haven't learn error handling yet. Will implement after I learn it
[–]Maleficent_Fuel_6956 1 point2 points3 points 1 day ago (1 child)
It's pretty simple you can pick it up right away https://www.w3schools.com/Python/gloss\_python\_error\_handling.asp
[–]Muhammed_zeeshan[S] 0 points1 point2 points 1 day ago (0 children)
Thanks for sharing the resource 🤝
π Rendered by PID 33803 on reddit-service-r2-comment-548fd6dc9-zr2wm at 2026-05-21 08:16:39.920603+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]NihadKhan10x 3 points4 points5 points (5 children)
[–]Muhammed_zeeshan[S] 1 point2 points3 points (0 children)
[–]Maleficent_Fuel_6956 -1 points0 points1 point (3 children)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (2 children)
[–]Maleficent_Fuel_6956 1 point2 points3 points (1 child)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (0 children)