0

I wrote a quiz program in python. Here is the chunk of the code

count = 0
while count < 100:
    answer = "something"
    while input() != answer:
        print("WRONG")
    print("CORRECT")
    count += 1

This program asks me 100 questions. I want the answer to be shown and go to the next program if I get stuck and cannot type in any answer for 10 seconds.
How can I achieve this?

Leonardo
  • 2,350
  • 14
  • 15
  • 30
Taro
  • 101

0 Answers0