spacepaste
new
Paste details
reply
|
raw
import
subprocess
try
:
subprocess
.
run
([
"python"
,
"-c"
,
r'input("What is the answer?\n")'
],
timeout
=
3
)
except
subprocess
.
TimeoutExpired
:
print
(
"
\n
Out of time"
)