I've 2 questions with the following code:
positive = {'yes','Yes','y','Y'}
negative = {'no','No''n','N'}
month = March
while True:
a = input('The month that you want to archive is March' '(Y or N) ? ')
if a=='N':
input("You will now leave, press Enter......")
break
elif a=='Y':
print("Let's do it")
input("The archive will start now, press Enter......")
continue
else:
print("Enter either 'Y' to continue or 'N' to leave")
print (month)
etc....
Questions:
1 - How can I accept the input as one of positive variable options ('yes','Yes','y','Y') ?
2 - How can I have the month variable written in the input question instead of March hardcoded (as it is in this moment)?
3 - I don't know how to keep running the code when users users press "Y" then Enter. It keeps repeating the question instead of running the print(month) code.
Thank you very much in advance