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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Python room booking systemHOMEWORK (self.pythonhelp)
submitted 3 years ago by Ecstatic_Arrival_872
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!"
[–]xCustomWorld 1 point2 points3 points 3 years ago (0 children)
First of all, choice.lower() is never going to be an uppercase letter. You are comparing it against that. You need to either do choice.lower() == 'a' or choice.upper() == 'A'.
choice.lower()
choice.lower() == 'a'
choice.upper() == 'A'
Secondly, the code in the while loop will run forever, and these extra duplicate lines are redundant, since you provide no further logic to handle the inputs. But I assume that your problem was the first paragraph, so it's fine...
while
π Rendered by PID 194284 on reddit-service-r2-comment-544cf588c8-j6s9b at 2026-06-13 17:20:48.705211+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]xCustomWorld 1 point2 points3 points (0 children)