I am trying to get a character input from the user using raw_input() and see if this is Y or N. The code that is supposed to do the job is given below:
#
# Things I have done before
#
c = ""
while c.capitalize() != "Y" or c.capitalize() != "N":
c = raw_input("\n\n If you wish to continue, press Y (or N to terminate) ")
if c.capitalize() == "N":
system.exit("Stopped script......check your files if necessary\n\n");
else:
#Other things to do
At the moment, I am repeatedly getting the prompt even when I press Y or N. Don't know what's wrong with it. I tried to use input() instead of raw_input() but I think I am using an older version of python (2x) and that's why need to use raw_input.
Any help is appreciated.