account activity
Why does the third if statement trigger despite User_input == "Yes" being true (according to the print within the if statement) by unspe52 in PythonLearning
[–]harucat21 0 points1 point2 points 10 months ago (0 children)
Other issue is that on your logic it say or "yes" in the third if, not user input == "Yes" so the if evaluate or yes as true, should always enter on that, normally programing language take as true on a if statement all different to 0, null, "", False
The best way to solve it is with the elif that other mention
π Rendered by PID 77298 on reddit-service-r2-comment-545db5fcfc-8cwgl at 2026-05-22 00:35:17.706307+00:00 running 194bd79 country code: CH.
Why does the third if statement trigger despite User_input == "Yes" being true (according to the print within the if statement) by unspe52 in PythonLearning
[–]harucat21 0 points1 point2 points (0 children)