Sep-23-2017, 04:14 PM
I'm trying to understand why this code works..
count = 0 while (count < 9): print ('The count is:', count) count = count + 1 print ("All done")but this one doesn't...
answer = "" while (answer != 'y' or 'n'): answer = input('Please enter y/n): ') print("got here")In the second case it loops continuously no matter what the user enters. I'm obviously missing something.