Re: Problem with printing statement when condition is false

2021-03-05 Thread Terry Reedy
On 3/4/2021 4:28 PM, Terry Reedy wrote: Quentin privately sent me 12 lines (which should have been posted here instead), which can be reduced to the following 4 that exhibit his bug. if a == b:     print('correct')     if a != b:     print('incorrect') The bug is a != b will never be t

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 3:15 PM, Terry Reedy wrote: On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change.

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change. Doing so may reveal to you the solutio

Problem with printing statement when condition is false

2021-03-04 Thread Quentin Bock
Okay so, this is my biggest project, I'm not advanced in Python in any way so don't expect it to be perfect. I made a trivia game and for the most part, it works but I can't get it to print "Incorrect" and then what the answer was for all but one of my questions and I don't know why. I use PyCharm