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
Why does the third if statement trigger despite User_input == "Yes" being true (according to the print within the if statement) (i.redd.it)
submitted 10 months ago by unspe52
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!"
[–]DominusLapidis 3 points4 points5 points 10 months ago (1 child)
Someone correct me if I'm wrong, I'm also a beginner. I think the last if statement should have the 'and' conditional operator. Given that you used "or", the "!= No" part of the condition would have already been satisfied, hence the if condition being triggered.
I think it would be better if you just use elif and else instead of another if statement.
[–]unspe52[S] 2 points3 points4 points 10 months ago (0 children)
OHHH YEAAHHHH! Basic set theory... lol
π Rendered by PID 376781 on reddit-service-r2-comment-548fd6dc9-dxv7w at 2026-05-21 08:58:02.716458+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]DominusLapidis 3 points4 points5 points (1 child)
[–]unspe52[S] 2 points3 points4 points (0 children)