I\'m a n00b to python, and I\'m looking a code snippet/sample which performs the following:
If you combine time.sleep, threading.Thread, and sys.stdin.read you can easily wait for a specified amount of time for input and then continue.
t = threading.Thread(target=sys.stdin.read(1) args=(1,)) t.start() time.sleep(5) t.join()