title: python expire input prompt after timeout
body: <p>How do I make an offer/question expire in python, e.g.</p>
  
  <pre><code>import time
  print("Hey there man.")
  test = input()
  if test == "Hey" or test == "Hi":
      print("Hey there dude.")
  elif test == "Go away" or test == "Bye":
      print("Cya dude.")
  </code></pre>
  
  <p>How would I make this offer say I don't know only last 10 seconds before it ignores the if and elif statements and prints something completely new as in something similiar to...</p>
  
  <pre><code>import time
  print("Hey there.")
  test = input()
  if test == "Hey" or test == "Hi":
      print("Hey there dude.")
  elif test == "Go away" or test == "Bye":
      print("Cya dude.")
  else time.sleep == &gt;5:
      print("Nah your time has expired I'm out anyways.")
  </code></pre>