Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

break input loop

import sys, select

print "You have ten seconds to answer!"

i, o, e = select.select( [sys.stdin], [], [], 10 )

if (i):
  print "You said", sys.stdin.readline().strip()
else:
  print "You said nothing!"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #break #input #loop
ADD COMMENT
Topic
Name
7+1 =