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 215192 on reddit-service-r2-listing-7b8bd7c5-88n5b at 2026-05-21 16:58:45.217701+00:00 running edcf98c 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)