You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
257 B
Python

2 years ago
questions = ["What is your name?", "What is your favorite color?", "What is your quest?"]
n = 0
while True:
print("Type q to quit")
answer = input(questions[n])
if answer == "quit" or "Quit":
break
n += 1
if n > 2:
n = 0