In this case, if the user puts 'N' he will get back to the first line, right?
if the user puts again 'N', I want to give him another reply for his second retry
answer = input ("Stranger: Can you provide us your information ?(Y/N): ") .upper()
count = 0
while True:
count += 1
if count == 1:
x = input("This is the first question: ")
else:
x = input("This is the second question and beyond: ")
if x == 'quit':
break
To add…
To error check the user input, I would simply add this to the end of the while loop:
elif x not in ("y", "n"):
print("Enter y, n or quit")
count = 0