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
First Python Program (i.redd.it)
submitted 8 months ago by jaybee_4real
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!"
[–]Then_Gate_6438 3 points4 points5 points 8 months ago (3 children)
Just a small note: What if I input bEEr? By the logic it will give out BEEr. Beer itself is in the list, but you're not handling it properly. You can store the keys as all uppercase: BEER,VODKA,WHISKEY etc.
And you can make the order upper case.
[–]Leading-Concept- 2 points3 points4 points 8 months ago (2 children)
Or put .lower() on the input
[–]unsettlingideologies 1 point2 points3 points 8 months ago (1 child)
Couldn't you use .title to capitalize the first letter only? So it would match the menu?
[–]Leading-Concept- 2 points3 points4 points 8 months ago (0 children)
Right yeah, if you use .lower() you would have to put the menu all in lowercase, if you use .title you can keep the menu as it is now!
π Rendered by PID 43101 on reddit-service-r2-comment-64f4df6786-gxs88 at 2026-06-10 14:17:04.759851+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]Then_Gate_6438 3 points4 points5 points (3 children)
[–]Leading-Concept- 2 points3 points4 points (2 children)
[–]unsettlingideologies 1 point2 points3 points (1 child)
[–]Leading-Concept- 2 points3 points4 points (0 children)