0

I have an os. system ('pause') function at the top of my python script that asks the user to press a key if they want to continue with the script. If the user presses any key it continues the script. Here's an example of the script.

import os
os.system ('pause')

print("script ran")

The output asks the user to press any key to continue and when you press a key it prints "script ran" nothing will happen if the user presses nothing.

Is there a way to make the script continue after a set amount of seconds has passed without any input from the user?

                                                           .

0 Answers0