my code for a random number guesser looks like so:
if answer == 'n' and 'N':
print 'I hope to see you next time, %s' % user
exit()
However, if I input 'N'
, the console blanks out and exits instead of printing the statement. 'n'
works still tho and the 'Y' and 'y'
statement works perfect. So I am not sure what is going on here with the 'N'
, but probably something simple I am overlooking. Thanks