I am trying to create a program that asks user for input with three responses to a question. Right now the questions I have are almost paragraph long, but ideally I would like to start by asking an initial question, then start giving hints if user doesn't input anything within any amount of time.
answers = []
def questions(question):
print(question)
for i in range(1, 4, 1):
answers.append(input(f"{i}. "))
questions("""What are your three favorite things? """)
Ideally there would be something that behaved like pseudocode below:
ask user for input
if no response within 30 seconds:
give first hint
elif no respose within 30 seconds:
give second hint
Thanks in advance!