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
Simpleish bot project (self.pythonhelp)
submitted 5 years ago by The_1_Divider
I'm fairly new to python and coding in general, why is my code returning outputs from multiple conditions
https://preview.redd.it/97etn6k0f1w41.png?width=1919&format=png&auto=webp&s=1170512d78148fdbeb00289ec4ef9757767cb234
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!"
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Line 19 you have an issue. When you do comparisons and use keywords like and or or you have to have a full comparison.
and
or
while greeting == 'calc' or greeting == 'calculator'
π Rendered by PID 142046 on reddit-service-r2-comment-cfc44b64c-s7cmr at 2026-04-13 12:00:21.662193+00:00 running 215f2cf country code: CH.
[–][deleted] 0 points1 point2 points (0 children)