the expression:
(response != 'n') or (response != 's')
will always be True for any string response. If response
is 'n'
, then it isn't 's'
. If it's 's'
, then it isn't 'n'
. If it's anything else, then it's not 's'
and it's not 'n'
.
Perhaps you meant to use and
there?