Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11631

How to run a thread with a input at the same time?

$
0
0

I am new to Python and am trying to create a program that asks the user a simple question. I also want to create a timer that lasts only 5 seconds for the input. When the timer ends, I want a message that says "timer up" to appear.

Threads

I created both the question and timer, but only one runs at once. How do I fix this?


Viewing all articles
Browse latest Browse all 11631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>