[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
: [issue41436] BUG a simple "and" and "or" Karthikeyan Singaravelan added the comment: Below is the formatted program for easier reading. In the while clause you ask for the user to enter n to exit but you check (ch != n or ch != N) so on entering "n" the first condit

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
] BUG a simple "and" and "or" James Corbett added the comment: I think this would have been a better fit for a StackOverflow issue: https://stackoverflow.com/questions/tagged/python. Also, it's not a compilation error and it doesn't have anything to do with CPython's testing

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread James Corbett
James Corbett added the comment: I think this would have been a better fit for a StackOverflow issue: https://stackoverflow.com/questions/tagged/python. Also, it's not a compilation error and it doesn't have anything to do with CPython's testing framework. Anyway, I don't think this is a

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Below is the formatted program for easier reading. In the while clause you ask for the user to enter n to exit but you check (ch != n or ch != N) so on entering "n" the first condition is false but second clause is true. For "N" it's vice-versa.

[issue41436] BUG a simple "and" and "or"

2020-07-29 Thread Samran
New submission from Samran : #this is the code from random import randint num = randint(1,10) print(type(num)) print(num) ch = None #tried changing this tried converting types guess = 0