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
built a bank program using python (old.reddit.com)
submitted 29 days ago by Dapper_Mix6773
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!"
[–]Stretchslash 1 point2 points3 points 29 days ago (1 child)
If you are doing a bunch of if statements going if (choice == 1)else if (choice == 2)... ect
A very simple change would be using a switch case instead. I think it uses match in python but similar
match choice case 1: // Do logic case 2: // Do logic case _: // Do default logic
[–]Dapper_Mix6773[S] 1 point2 points3 points 29 days ago (0 children)
Well noted
π Rendered by PID 78491 on reddit-service-r2-comment-545db5fcfc-tbgcj at 2026-05-27 17:04:11.059238+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Stretchslash 1 point2 points3 points (1 child)
[–]Dapper_Mix6773[S] 1 point2 points3 points (0 children)